Skip to content

Commit

Permalink
Merge pull request #13 from devops-kung-fu/testfix
Browse files Browse the repository at this point in the history
staticcheck fix
  • Loading branch information
mirxcle authored Mar 11, 2024
2 parents c69eb1c + 253ca1b commit a889c1d
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 a889c1d

Please sign in to comment.