Skip to content

Commit bcefaac

Browse files
committed
utils: fix golangci-lint apparently running with Go < 1.20
See https://github.com/gofiber/fiber/actions/runs/4968641325/jobs/8891360463?pr=2462.
1 parent deb7464 commit bcefaac

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

utils/convert_s2b_new.go

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
)
99

1010
// UnsafeBytes returns a byte pointer without allocation.
11-
//
12-
//nolint:gosec // unsafe is used for better performance here
1311
func UnsafeBytes(s string) []byte {
1412
return unsafe.Slice(unsafe.StringData(s), len(s))
1513
}

0 commit comments

Comments
 (0)