mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
lib/storage: go fmt
This commit is contained in:
parent
bf915fc0db
commit
2655220c58
1 changed files with 2 additions and 2 deletions
|
@ -592,13 +592,13 @@ func extractRegexpPrefix(b []byte) ([]byte, []byte) {
|
||||||
if re == emptyRegexp {
|
if re == emptyRegexp {
|
||||||
return nil, nil
|
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
|
return []byte(string(re.Rune)), nil
|
||||||
}
|
}
|
||||||
var prefix []byte
|
var prefix []byte
|
||||||
if re.Op == syntax.OpConcat {
|
if re.Op == syntax.OpConcat {
|
||||||
sub0 := re.Sub[0]
|
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))
|
prefix = []byte(string(sub0.Rune))
|
||||||
re.Sub = re.Sub[1:]
|
re.Sub = re.Sub[1:]
|
||||||
if len(re.Sub) == 0 {
|
if len(re.Sub) == 0 {
|
||||||
|
|
Loading…
Reference in a new issue