diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-25 18:07:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 18:07:39 +0800 |
commit | 083c3ee659c6c5542687f3bafae68cbc24dbc90f (patch) | |
tree | 0103bf3b5c5ebfccd368a7cb6a425a521fd669d9 /internal/tool | |
parent | 9df4e3ae3c555a86f691f0d78a43834842e77d8b (diff) |
db: refactor "action" table to use GORM (#7054)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/tool')
-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 { |