1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #40014 from thaJeztah/fix_golint_copy_pasta

integration-cli: fix golint (copy/paste whoops)
This commit is contained in:
Kirill Kolyshkin 2019-09-30 11:07:35 -07:00 committed by GitHub
commit 58653d097c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,14 +62,14 @@ func DeepEquals(y interface{}) Compare {
}
}
// DeepEquals compares if two values are deepequal
// HasLen checks if the value has the expected number of elements
func HasLen(y int) Compare {
return func(x interface{}) assert.BoolOrComparison {
return cmp.Len(x, y)
}
}
// DeepEquals checks if the given value is nil
// IsNil checks if the value is nil
func IsNil() Compare {
return func(x interface{}) assert.BoolOrComparison {
return cmp.Nil(x)