lib/storage: go fmt

This commit is contained in:
Aliaksandr Valialkin 2019-08-27 14:24:33 +03:00
parent a63b69e9e2
commit da07a6fb38

View file

@ -609,13 +609,13 @@ func extractRegexpPrefix(b []byte) ([]byte, []byte) {
if re == emptyRegexp {
return nil, nil
}
if re.Op == syntax.OpLiteral && re.Flags & syntax.FoldCase == 0 {
if re.Op == syntax.OpLiteral && re.Flags&syntax.FoldCase == 0 {
return []byte(string(re.Rune)), nil
}
var prefix []byte
if re.Op == syntax.OpConcat {
sub0 := re.Sub[0]
if sub0.Op == syntax.OpLiteral && sub0.Flags & syntax.FoldCase == 0 {
if sub0.Op == syntax.OpLiteral && sub0.Flags&syntax.FoldCase == 0 {
prefix = []byte(string(sub0.Rune))
re.Sub = re.Sub[1:]
if len(re.Sub) == 0 {