Skip to content

Commit dc0186e

Browse files
committed
Disable ireturn linter false positive
1 parent 347b070 commit dc0186e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

geom/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func arbitraryControlPoint(g Geometry) Point {
141141
}
142142
}
143143

144-
func catch[T any](fn func() (T, error)) (result T, err error) {
144+
func catch[T any](fn func() (T, error)) (result T, err error) { //nolint:ireturn
145145
// In Go 1.21+, panic(nil) causes recover() to return a *runtime.PanicNilError
146146
// rather than nil. In earlier versions, recover() returns nil for panic(nil),
147147
// making it indistinguishable from "no panic". We emulate the Go 1.21+ behavior

0 commit comments

Comments
 (0)