Simplified the logic of limit

This commit is contained in:
Diptanu Choudhury
2016-03-10 19:02:39 -08:00
parent 9d9751864b
commit 4f24be9224

View File

@@ -27,7 +27,7 @@ func formatList(in []string) string {
// Limits the length of the string.
func limit(s string, length int) string {
if len(s) < length {
return s[:len(s)]
return s
}
return s[:length]