Fix a couple lint warnings
diff --git a/Ftoa.go b/Ftoa.go
index 89da1ea..61d7de7 100644
--- a/Ftoa.go
+++ b/Ftoa.go
@@ -7,6 +7,7 @@
var trailingZerosRegex = regexp.MustCompile(`\.?0+$`)
+// Ftoa converts a float to a string with no trailing zeros.
func Ftoa(num float64) string {
str := fmt.Sprintf("%f", num)
return trailingZerosRegex.ReplaceAllString(str, "")
diff --git a/times.go b/times.go
index 7720304..28d46d6 100644
--- a/times.go
+++ b/times.go
@@ -73,7 +73,6 @@
if after {
return "a while from now"
- } else {
- return "long ago"
}
+ return "long ago"
}