Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Remove trailing line break on StdOutError and StdOutSuccess
Browse files Browse the repository at this point in the history
Was causing multiple line break errors if the caller had already
supplied a line break to their output
  • Loading branch information
mainawycliffe committed Apr 12, 2020
1 parent 789ff0f commit d0623b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func ProcessCustomClaimInput(input map[string]string) map[string]interface{} {
// StdOutError print an error message to the standard out
func StdOutError(w io.Writer, format string, a ...interface{}) {
m := aurora.Sprintf(aurora.Red(format), a...)
fmt.Fprintf(w, "%s\n", m)
fmt.Fprintf(w, "%s", m)
}

// StdOutSuccess print a success message to the standard out
func StdOutSuccess(w io.Writer, format string, a ...interface{}) {
m := aurora.Sprintf(aurora.Green(format), a...)
fmt.Fprintf(w, "%s\n", m)
fmt.Fprintf(w, "%s", m)
}

// UnmarshalFormatFile read and unmarshal either a json/yaml file into a struct
Expand Down

0 comments on commit d0623b6

Please sign in to comment.