mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 17:41:05 +01:00
added golangci-linting, refactor, simplified error msgs and fixed some error handling
This commit is contained in:
@@ -92,7 +92,6 @@ func ExpectType[T any](t *testing.T, got any) (_ T) {
|
||||
_, ok := got.(T)
|
||||
if !ok {
|
||||
t.Fatalf("expected type %s, got %s", tExpect, reflect.TypeOf(got).Elem())
|
||||
t.FailNow()
|
||||
return
|
||||
}
|
||||
return got.(T)
|
||||
|
||||
Reference in New Issue
Block a user