lint: enable custom linters from go-lint project

This commit is contained in:
2026-09-19 21:36:31 -07:00
parent ef71828ce2
commit c70732d6af
6 changed files with 83 additions and 5 deletions

View File

@@ -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
}
}