Skip to content

Commit

Permalink
Merge pull request #74 from andrewmelis/fix-noline-print
Browse files Browse the repository at this point in the history
Fix printSecret bug when input contains fmt verb
  • Loading branch information
wolfeidau authored Mar 27, 2018
2 parents 22242d3 + 291f7df commit e8b2d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/unicreds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func printFatalError(err error) {
func printSecret(secret string, noline bool) {
log.WithField("noline", noline).Debug("print secret")
if noline {
fmt.Printf(secret)
fmt.Print(secret)
} else {
fmt.Println(secret)
}
Expand Down

0 comments on commit e8b2d4c

Please sign in to comment.