Skip to content

Commit

Permalink
Fix sonarcloud issue (typo, t.Helper)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tit Petric committed Aug 16, 2023
1 parent 6fa659c commit 7a9e3b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import (
)

// MarshalJSON returns a closure returning the marshalled json
// while asserting no error occured during marshalling.
// while asserting no error occurred during marshalling.
func MarshalJSON(t testing.TB) func(interface{}) []byte {
t.Helper()

return func(in interface{}) []byte {
b, err := json.Marshal(in)
require.NoError(t, err)
Expand Down

0 comments on commit 7a9e3b4

Please sign in to comment.