lint: enable custom linters from go-lint project
This commit is contained in:
@@ -16,8 +16,8 @@ func Get[T any](val T, err error) T {
|
||||
return val
|
||||
}
|
||||
|
||||
func Be(condition bool, msg string, args ...any) {
|
||||
if !condition {
|
||||
func Be(ok bool, msg string, args ...any) {
|
||||
if !ok {
|
||||
panic(fmt.Errorf(msg, args...)) //nolint:err113 // not a returned error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user