Simplified the logic of limit

This commit is contained in:
Diptanu Choudhury 2016-03-10 19:02:39 -08:00
parent c9b7a559a3
commit 4589798ade
1 changed files with 1 additions and 1 deletions

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]