Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinogz committed Apr 30, 2024
1 parent b2f562b commit 0773982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func writeJSON(
) error {
js, err := json.MarshalIndent(data, "", "\t")
if err != nil {
return err
return errors.New("could not marshall data to JSON")
}

js = append(js, '\n')
Expand Down

0 comments on commit 0773982

Please sign in to comment.