Skip to content

Commit

Permalink
staticcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Mar 11, 2024
1 parent c69eb1c commit 253ca1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/converter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestConvert_Success(t *testing.T) {
}

e := func() error {
var data []byte = []byte(jsonContent)
var data = []byte(jsonContent)
f, err := (converter.Afs).Fs.OpenFile("test.json", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.FileMode(0644))
if err != nil {
return err
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestConvert_Success(t *testing.T) {
assert.Error(t, err, "Expected no error")

e = func() error {
var data []byte = []byte("<>test")
var data = []byte("<>test")
f, err := (*converter.Afs).Fs.OpenFile("test.json", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.FileMode(0644))
if err != nil {
return err
Expand Down

0 comments on commit 253ca1b

Please sign in to comment.