We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 347b070 commit dc0186eCopy full SHA for dc0186e
1 file changed
geom/util.go
@@ -141,7 +141,7 @@ func arbitraryControlPoint(g Geometry) Point {
141
}
142
143
144
-func catch[T any](fn func() (T, error)) (result T, err error) {
+func catch[T any](fn func() (T, error)) (result T, err error) { //nolint:ireturn
145
// In Go 1.21+, panic(nil) causes recover() to return a *runtime.PanicNilError
146
// rather than nil. In earlier versions, recover() returns nil for panic(nil),
147
// making it indistinguishable from "no panic". We emulate the Go 1.21+ behavior
0 commit comments