cosmos-sdk/errors/helpers.go
2017-07-27 16:27:06 -04:00

10 lines
230 B
Go

package errors
// CheckErr is the type of all the check functions here
type CheckErr func(error) bool
// NoErr is useful for test cases when you want to fulfil the CheckErr type
func NoErr(err error) bool {
return err == nil
}