added golangci (#59)

This commit is contained in:
Michał Matczuk committed 2018-08-07 16:16:24 +02:00
1 parent 2f13a81c46
commit f8424b00b9
6 files changed
+43 -42

No files matched your search

+1 -1
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})
}