From 083c3ee659c6c5542687f3bafae68cbc24dbc90f Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 25 Jun 2022 18:07:39 +0800 Subject: db: refactor "action" table to use GORM (#7054) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/tool/tool.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'internal/tool') 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 { -- cgit v1.2.3