mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 17:26:52 +08:00
go lint
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package utils
|
||||
|
||||
// Equals check whether the given value is equal
|
||||
func Equals(a interface{}, b interface{}) bool {
|
||||
sliceA, okA := a.([]byte)
|
||||
sliceB, okB := b.([]byte)
|
||||
@@ -9,6 +10,7 @@ func Equals(a interface{}, b interface{}) bool {
|
||||
return a == b
|
||||
}
|
||||
|
||||
// BytesEquals check whether the given bytes is equal
|
||||
func BytesEquals(a []byte, b []byte) bool {
|
||||
if (a == nil && b != nil) || (a != nil && b == nil) {
|
||||
return false
|
||||
|
Reference in New Issue
Block a user