lib/storage: go fmt

This commit is contained in:
Aliaksandr Valialkin 2019-08-27 14:24:33 +03:00
parent bf915fc0db
commit 2655220c58

View File

@ -592,13 +592,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 {