Skip to content

Commit

Permalink
fix(changelog): raise no error when output is set to stdout and `CHAN…
Browse files Browse the repository at this point in the history
…GELOG.md` does not exist
  • Loading branch information
zbindenren committed Jan 4, 2021
1 parent 589578b commit ba54c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (c Command) runRelease(dst io.Writer, l *flash.Logger, cfg config.Changelog
title := fmt.Sprintf("%s (%s)", version, time.Now().Format(dateFormat))

old, err := ioutil.ReadFile(*c.file)
if err != nil {
if err != nil && !*c.toStdOut {
return err
}

Expand Down

0 comments on commit ba54c82

Please sign in to comment.