Skip to content

Commit

Permalink
test: rename local variable to not match import (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored Aug 15, 2022
1 parent c85f3ff commit 512046b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/database/zip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ func zipOSVs(t *testing.T, osvs map[string]database.OSV) []byte {
buf := new(bytes.Buffer)
writer := zip.NewWriter(buf)

for filepath, osv := range osvs {
for fp, osv := range osvs {
data, err := json.Marshal(osv)
if err != nil {
t.Fatalf("could not marshal %v: %v", osv, err)
}

f, err := writer.Create(filepath)
f, err := writer.Create(fp)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 512046b

Please sign in to comment.