added golangci (#59)
This commit is contained in:
1 parent
2f13a81c46
commit
f8424b00b9
6 files changed
+43
-42
No files matched your search
+1
-1
@@ -244,7 +244,7 @@ type kinder interface {
|
||||
|
||||
// mustBe checks a value against a kind, panicing with a reflect.ValueError
|
||||
// if the kind isn't that which is required.
|
||||
func mustBe(v kinder, expected reflect.Kind) {
|
||||
func mustBe(v kinder, expected reflect.Kind) { // nolint: unparam
|
||||
if k := v.Kind(); k != expected {
|
||||
panic(&reflect.ValueError{Method: methodName(), Kind: k})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user