Skip to content

Commit

Permalink
Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar committed Nov 1, 2019
1 parent 9946105 commit e8d063f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,7 @@ func Display(severity Severity, message string, duration float32) *Notification

// DisplayAndLog creates a new notification and also logs the message to stdout.
func DisplayAndLog(severity Severity, prefix, message string, vars ...interface{}) *Notification {
var msg string
if len(vars) > 0 {
msg = fmt.Sprintf(message, vars...)
} else {
msg = message
}
msg := fmt.Sprintf(message, vars...)
if state.Global.Verbose {
log.Print("[" + prefix + "]: " + msg + "\n")
}
Expand Down

0 comments on commit e8d063f

Please sign in to comment.