Skip to content

Commit

Permalink
remove redundant type name in array init
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Apr 17, 2022
1 parent 9476e57 commit 91cf5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func durStringSimple(d time.Duration) string {
u string
c int64
}
units := []tt{tt{"s", 60}, tt{"m", 60}, tt{"h", 24}, tt{"d", 30}, tt{"m", 12}, tt{"y", 0}}
units := []tt{{"s", 60}, {"m", 60}, {"h", 24}, {"d", 30}, {"m", 12}, {"y", 0}}
r = strconv.FormatFloat(math.Mod(s, 60), 'f', 1, 64) + "s"
t := int64(s / 60)

Expand Down

0 comments on commit 91cf5ee

Please sign in to comment.