Skip to content

Commit

Permalink
chore: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Jun 24, 2024
1 parent 72633ac commit 4b9802c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions local_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func TestLocalFile(t *testing.T) {
t.Error(err)
}
defer os.Remove(f.Name())
f.WriteString("Gin Web Framework")
f.Close()
_, _ = f.WriteString("Gin Web Framework")
_ = f.Close()

dir, filename := filepath.Split(f.Name())
router := gin.New()
Expand Down
2 changes: 1 addition & 1 deletion serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/stretchr/testify/assert"
)

// nolint:unparam
//nolint:unparam

Check failure on line 17 in serve_test.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:unparam` is unused for linter "unparam" (nolintlint)
func PerformRequest(r http.Handler, method, path string) *httptest.ResponseRecorder {
req, _ := http.NewRequestWithContext(context.Background(), method, path, nil)
w := httptest.NewRecorder()
Expand Down

0 comments on commit 4b9802c

Please sign in to comment.