fix a few go-vet errors

This commit is contained in:
Tim Hockin
2016-02-09 13:20:31 -08:00
parent ee54afc9ed
commit 7cab7bd472
10 changed files with 20 additions and 21 deletions

View File

@@ -120,8 +120,7 @@ func (t ErrorType) String() string {
case ErrorTypeInternal:
return "Internal error"
default:
panic(fmt.Sprintf("unrecognized validation error: %q", t))
return ""
panic(fmt.Sprintf("unrecognized validation error: %q", string(t)))
}
}