mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Simplified the logic of limit
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user