Skip to content

Commit

Permalink
fix: non-constant format string in call to (*testing.common).Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
joschi committed Feb 17, 2025
1 parent ce0fd8c commit cd4817a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/ui/viewmodel/filetree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func helperCheckDiff(t *testing.T, expected, actual []byte) {
if !bytes.Equal(expected, actual) {
dmp := diffmatchpatch.New()
diffs := dmp.DiffMain(string(expected), string(actual), true)
t.Errorf(dmp.DiffPrettyText(diffs))
t.Errorf("%s", dmp.DiffPrettyText(diffs))
t.Errorf("%s: bytes mismatch", t.Name())
}
}
Expand Down

0 comments on commit cd4817a

Please sign in to comment.