Skip to content

Commit

Permalink
ci: enable mirror linter
Browse files Browse the repository at this point in the history
mirror warns against certain cases of useless conversion between string
and []byte.
  • Loading branch information
nickajacks1 committed Feb 19, 2024
1 parent 96fafad commit b829b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ linters:
- grouper
- inamedparam
- loggercheck
# - mirror # TODO https://github.com/gofiber/fiber/issues/2816
- mirror
- misspell
- nakedret
- nilerr
Expand Down
2 changes: 1 addition & 1 deletion ctx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4181,7 +4181,7 @@ func Test_Ctx_Render_Go_Template(t *testing.T) {
require.NoError(t, err)
}()

_, err = file.Write([]byte("template"))
_, err = file.WriteString("template")
require.NoError(t, err)

err = file.Close()
Expand Down

0 comments on commit b829b8b

Please sign in to comment.