Skip to content

Commit

Permalink
reuse error variable
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rutkowski <[email protected]>
  • Loading branch information
mrutkows committed Jun 12, 2024
1 parent 1256b05 commit c65a413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion identifier/identifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ func Test_identifyLicensesInStringPreChecks(t *testing.T) {
t.Fatalf("AddAll() error = %v", err)
}
identifierResults := IdentifierResults{}
err := IdentifyLicensesInString(&identifierResults, tt.input, options, ll)
err = IdentifyLicensesInString(&identifierResults, tt.input, options, ll)
if err != nil {
t.Errorf("identifyLicensesInString() error = %v", err)
} else if d := cmp.Diff(tt.want.Matches, identifierResults.Matches, cmp.AllowUnexported(Match{})); d != "" {
Expand Down

0 comments on commit c65a413

Please sign in to comment.