mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
file.go: remove duplicated trim
The s var was already trimmed on line 67
This commit is contained in:
@@ -66,7 +66,7 @@ func Read() error {
|
|||||||
for _, s := range strings.Split(colStr, ",") {
|
for _, s := range strings.Split(colStr, ",") {
|
||||||
s = strings.TrimSpace(s)
|
s = strings.TrimSpace(s)
|
||||||
if s != "" {
|
if s != "" {
|
||||||
colNames = append(colNames, strings.TrimSpace(s))
|
colNames = append(colNames, s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetColumns(colNames)
|
SetColumns(colNames)
|
||||||
|
|||||||
Reference in New Issue
Block a user