1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Clean up a bunch of if statements based on govet results

This commit is contained in:
Chris Cummer
2018-08-03 05:40:39 -07:00
parent 1f27cf5b00
commit 72c192cabf
12 changed files with 38 additions and 37 deletions

View File

@@ -48,9 +48,10 @@ func (widget *Widget) Refresh() {
func (widget *Widget) prettyDate() string {
str, err := time.Parse(wtf.TimestampFormat, widget.Date)
if err != nil {
return err.Error()
} else {
return str.Format("Jan _2, 15:04")
}
return str.Format("Jan _2, 15:04")
}