mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Remove error checking helper in util/errors.go
It was previously moved to common/errors.go
This commit is contained in:
parent
2e74ac508b
commit
245b84d0b4
@ -1,12 +0,0 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// CheckError checks if an error occurred (it's not nil)
|
||||
func CheckError(err error) {
|
||||
if err != nil {
|
||||
logrus.Fatal(err.Error())
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user