Skip to content

Commit

Permalink
fixing static check
Browse files Browse the repository at this point in the history
  • Loading branch information
rozdolsky33 committed Oct 13, 2024
1 parent b882db8 commit 96c370b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ func (t *Tools) WriteXML(w http.ResponseWriter, status int, data interface{}, he
// Add the XML header
xmlOut := []byte(xml.Header + string(out))
_, err = w.Write(xmlOut)
if err != nil {
return err
}

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func TestTools_CreateDirIfNotExist(t *testing.T) {
t.Error(err)
}

_ = os.Remove(fmt.Sprintf("./testdata/myDir"))
_ = os.Remove("./testdata/myDir")

}

Expand Down

0 comments on commit 96c370b

Please sign in to comment.