diff options
| author | 2026-02-21 20:55:37 +0800 | |
|---|---|---|
| committer | 2026-02-21 20:55:37 +0800 | |
| commit | 2cb9c32187f0f14f38ab8124466f0ad17f77c5d0 (patch) | |
| tree | d747cfe22f48a5c134906eb9efed99c471491be8 /repository | |
| parent | internal/zlib: Fix lints (diff) | |
| signature | No signature | |
*: Fix nosec
Diffstat (limited to 'repository')
| -rw-r--r-- | repository/traversal_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/traversal_test.go b/repository/traversal_test.go index 674b9a1b..2627f711 100644 --- a/repository/traversal_test.go +++ b/repository/traversal_test.go @@ -54,7 +54,7 @@ func TestRepositoryDepthFirstEnumerationCurrentWorktree(t *testing.T) { t.Fatalf("%q is neither a directory nor a regular file", gitPath) } - content, err := os.ReadFile(gitPath) //#nosec:G304 + content, err := os.ReadFile(gitPath) //#nosec G304 if err != nil { t.Fatalf("read %q: %v", gitPath, err) } @@ -73,7 +73,7 @@ func TestRepositoryDepthFirstEnumerationCurrentWorktree(t *testing.T) { gitdirPath = filepath.Join(worktreeRoot, gitdirPath) } commondirPath := filepath.Join(gitdirPath, "commondir") - commondirContent, err := os.ReadFile(commondirPath) //#nosec:G304 + commondirContent, err := os.ReadFile(commondirPath) //#nosec G304 if err != nil { t.Fatalf("read %q: %v", commondirPath, err) } |
