lint: fix unhandled errors

This commit is contained in:
Ondřej Budai 2020-02-28 23:00:46 +01:00 committed by Tom Gundersen
parent 9bef739621
commit d7cbc22da4
12 changed files with 151 additions and 56 deletions

View file

@ -15,3 +15,9 @@ func CurrentArch() string {
panic("unsupported architecture")
}
}
func PanicOnError(err error) {
if err != nil {
panic(err)
}
}