mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -05:00
fix typo and the string representation of the time.Time value (#7831)
This commit is contained in:
@@ -97,7 +97,7 @@ func (v *Value) Repr() string {
|
||||
case typeBool, typeInt, typeFloat:
|
||||
return fmt.Sprintf("%v:%s", v.value, v.GetTypeString())
|
||||
case typeTimestamp:
|
||||
return fmt.Sprintf("%s:TIMESTAMP", v.value.(*time.Time))
|
||||
return fmt.Sprintf("%s:TIMESTAMP", v.value.(time.Time))
|
||||
case typeString:
|
||||
return fmt.Sprintf("\"%s\":%s", v.value.(string), v.GetTypeString())
|
||||
case typeBytes:
|
||||
@@ -335,7 +335,7 @@ func (v *Value) compareOp(op string, a *Value) (res bool, err error) {
|
||||
}
|
||||
|
||||
boolV, ok1b := v.ToBool()
|
||||
boolA, ok2b := v.ToBool()
|
||||
boolA, ok2b := a.ToBool()
|
||||
if ok1b && ok2b {
|
||||
return boolCompare(op, boolV, boolA)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user