Skip to content

Commit

Permalink
test: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
szkiba committed Jul 8, 2024
1 parent 35ff928 commit 515bd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func Test_build(t *testing.T) {

require.NoError(t, err)

cmd := exec.Command(filepath.Clean(dest), "version")
cmd := exec.Command(filepath.Clean(dest), "version") //nolint:gosec

out, err := cmd.Output()

Expand Down
4 changes: 2 additions & 2 deletions cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func exists(t *testing.T, filename string) bool {
t.Helper()

_, err := os.Stat(filename)
_, err := os.Stat(filename) //nolint:forbidigo

return err == nil
}
Expand All @@ -29,7 +29,7 @@ func TestCleanupState(t *testing.T) {

subdir := filepath.Join(tmp, strconv.Itoa(os.Getpid()))

require.NoError(t, os.MkdirAll(subdir, 0700))
require.NoError(t, os.MkdirAll(subdir, 0o700))

name := filepath.Join(subdir, "hello.txt")

Expand Down

0 comments on commit 515bd77

Please sign in to comment.