Skip to content

Commit

Permalink
Reflow guessed packages
Browse files Browse the repository at this point in the history
We have a map[string]bool full of "true"... why not use it?
  • Loading branch information
blast-hardcheese committed Dec 19, 2023
1 parent d0e4e0f commit d165264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backends/nodejs/nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func verify(t *testing.T, tc TestCase, extension string) {
}

for key := range tc.expected {
if _, ok := result[key]; !ok {
if !result[key] {
t.Errorf("Key %s not found in result map", key)
}
}
Expand Down

0 comments on commit d165264

Please sign in to comment.