Skip to content

Commit

Permalink
(WIP) fix
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sirish <aditya@saky.in>
  • Loading branch information
adityasaky committed May 25, 2024
1 parent 1b330e4 commit c5053bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gitinterface/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func CreateTestGitRepository(t *testing.T, dir string) *Repository {
var keysDir string
if dir == "gittuf-test" {
dir = dir + "/repo"

Check failure on line 45 in internal/gitinterface/common.go

View workflow job for this annotation

GitHub Actions / lint

assignOp: replace `dir = dir + "/repo"` with `dir += "/repo"` (gocritic)
os.Mkdir(dir, 0o755)

Check failure on line 46 in internal/gitinterface/common.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `os.Mkdir` is not checked (errcheck)
keysDir = dir + "/keys"
os.Mkdir(keysDir, 0o755)

Check failure on line 48 in internal/gitinterface/common.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `os.Mkdir` is not checked (errcheck)
} else {
keysDir = t.TempDir()
}
Expand Down

0 comments on commit c5053bd

Please sign in to comment.