added golangci (#59)

This commit is contained in:
Michał Matczuk
2018-08-07 15:30:04 +02:00
parent 2f13a81c46
commit f8424b00b9
6 changed files with 43 additions and 42 deletions

View File

@@ -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})
}