From 4f24be9224916414fbeb217e9b741c8f8f74137e Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 10 Mar 2016 19:02:39 -0800 Subject: [PATCH] Simplified the logic of limit --- command/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/helpers.go b/command/helpers.go index c03ba3cbd..3f9b50757 100644 --- a/command/helpers.go +++ b/command/helpers.go @@ -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]