Skip to content

Commit

Permalink
Add final newline to gomockhandler config file (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
hori-ryota authored Oct 15, 2024
1 parent 47e24e8 commit 8e67a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/repository/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (r *Repository) Put(m *model.Config, path string) error {
if err != nil {
return fmt.Errorf("json marshal: %w", err)
}
return os.WriteFile(path, d, 0644)
return os.WriteFile(path, append(d, '\n'), 0644)
}

func (r *Repository) Get(path string) (*model.Config, error) {
Expand Down

0 comments on commit 8e67a0b

Please sign in to comment.