Remove non-documentation lint
Because of extensive nature of changes, tested all three non-memstore backends - passed.
This commit is contained in:
parent
6614466d23
commit
484bf145a8
35 changed files with 277 additions and 284 deletions
|
|
@ -38,10 +38,10 @@ import (
|
|||
type Operator int
|
||||
|
||||
const (
|
||||
kCompareLT Operator = iota
|
||||
kCompareLTE
|
||||
kCompareGT
|
||||
kCompareGTE
|
||||
compareLT Operator = iota
|
||||
compareLTE
|
||||
compareGT
|
||||
compareGTE
|
||||
// Why no Equals? Because that's usually an AndIterator.
|
||||
)
|
||||
|
||||
|
|
@ -99,13 +99,13 @@ func (it *Comparison) Close() {
|
|||
|
||||
func RunIntOp(a int64, op Operator, b int64) bool {
|
||||
switch op {
|
||||
case kCompareLT:
|
||||
case compareLT:
|
||||
return a < b
|
||||
case kCompareLTE:
|
||||
case compareLTE:
|
||||
return a <= b
|
||||
case kCompareGT:
|
||||
case compareGT:
|
||||
return a > b
|
||||
case kCompareGTE:
|
||||
case compareGTE:
|
||||
return a >= b
|
||||
default:
|
||||
log.Fatal("Unknown operator type")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue