diff --git a/common/errors.go b/common/errors.go deleted file mode 100644 index ea6fed41..00000000 --- a/common/errors.go +++ /dev/null @@ -1,20 +0,0 @@ -package common - -func CheckFatal(e error) { - if e != nil { - Log.Fatal(e) - } -} - -func CheckWarn(e error) { - if e != nil { - Log.Warningln(e) - } -} - -// Assert test is true, panic otherwise -func Assert(test bool) { - if !test { - panic("Assertion failure") - } -} diff --git a/common/utils.go b/common/utils.go index a3c372b2..95d6872b 100644 --- a/common/utils.go +++ b/common/utils.go @@ -1,5 +1,12 @@ package common +// Assert test is true, panic otherwise +func Assert(test bool) { + if !test { + panic("Assertion failure") + } +} + func OnOff(b bool) string { if b { return "on"