diff options
Diffstat (limited to 'internal/tool/tool.go')
-rw-r--r-- | internal/tool/tool.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/tool/tool.go b/internal/tool/tool.go index 9dc7e104..e4280b2a 100644 --- a/internal/tool/tool.go +++ b/internal/tool/tool.go @@ -358,15 +358,6 @@ func Subtract(left, right interface{}) interface{} { } } -// EllipsisString returns a truncated short string, -// it appends '...' in the end of the length of string is too large. -func EllipsisString(str string, length int) string { - if len(str) < length { - return str - } - return str[:length-3] + "..." -} - // TruncateString returns a truncated string with given limit, // it returns input string if length is not reached limit. func TruncateString(str string, limit int) string { |