Skip to content

Commit

Permalink
fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Sep 4, 2024
1 parent 02745de commit 4c9bf79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/template/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ func (r *renderer) persistToDisk() error {
_, err := os.Stat(path)
if err == nil {
return fmt.Errorf("failed to initialize template, one or more files already exist: %s", path)
} else if !errors.Is(err, fs.ErrNotExist) {
}
if !errors.Is(err, fs.ErrNotExist) {
return fmt.Errorf("error while verifying file %s does not already exist: %w", path, err)
}
}
Expand Down

0 comments on commit 4c9bf79

Please sign in to comment.