These were accidentally wrong due to a sloppy copy/paste issue. Interestingly,
CI passed on the PR that added it (6397dd4d3123e0a1b89298d0a2cfe5388410a74f),
possibly because of this issue, it stopped linting?
WARN [runner/golint] Golint: can't lint 4 files: no file name for file &{Doc:<nil> Package:23044677 Name:quota Decls:[0xc02cc3fa40 0xc02cc3fac0 0xc02cc3fb40 0xc02cc3fbc0 0xc02cc62ab0 0xc02cc62c00] Scope:scope 0xc02cc5c340 {
var ErrQuotaNotSupported
type errQuotaNotSupported
}
Imports:[0xc02cc62930] Unresolved:[errdefs nil string] Comments:[0xc02cbc9ae0 0xc02cbc9c60]}
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -62,14 +62,14 @@ func DeepEquals(y interface{}) Compare {
|
| 62 | 62 |
} |
| 63 | 63 |
} |
| 64 | 64 |
|
| 65 |
-// DeepEquals compares if two values are deepequal |
|
| 65 |
+// HasLen checks if the value has the expected number of elements |
|
| 66 | 66 |
func HasLen(y int) Compare {
|
| 67 | 67 |
return func(x interface{}) assert.BoolOrComparison {
|
| 68 | 68 |
return cmp.Len(x, y) |
| 69 | 69 |
} |
| 70 | 70 |
} |
| 71 | 71 |
|
| 72 |
-// DeepEquals checks if the given value is nil |
|
| 72 |
+// IsNil checks if the value is nil |
|
| 73 | 73 |
func IsNil() Compare {
|
| 74 | 74 |
return func(x interface{}) assert.BoolOrComparison {
|
| 75 | 75 |
return cmp.Nil(x) |