Skip to content

Commit cb9581e

Browse files
committed
Fix variable name.
1 parent a371eac commit cb9581e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/util/ranger/detacher.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ func getPotentialEqOrInColOffset(sctx *rangerctx.RangerContext, expr expression.
131131
case ast.EQ, ast.NullEQ, ast.LE, ast.GE, ast.LT, ast.GT:
132132
var constVal *expression.Constant
133133
c, ok := f.GetArgs()[0].(*expression.Column)
134-
idx_const := 1
134+
idxConst := 1
135135
if !ok {
136-
idx_const = 0
136+
idxConst = 0
137137
if c, ok = f.GetArgs()[1].(*expression.Column); !ok {
138138
return -1
139139
}
@@ -146,7 +146,7 @@ func getPotentialEqOrInColOffset(sctx *rangerctx.RangerContext, expr expression.
146146
return -1
147147
}
148148

149-
if constVal, ok = f.GetArgs()[idx_const].(*expression.Constant); !ok {
149+
if constVal, ok = f.GetArgs()[idxConst].(*expression.Constant); !ok {
150150
return -1
151151
}
152152

0 commit comments

Comments
 (0)