fix: lint issues

This commit is contained in:
Ayman Bagabas
2026-02-23 23:18:55 +03:00
parent f744b929dd
commit af98365cc6
4 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ func (m *Model) GotoBottom() {
// default for getting all the rows and the given separator for the fields on
// each row.
func (m *Model) FromValues(value, separator string) {
rows := []Row{}
rows := []Row{} //nolint:prealloc
for _, line := range strings.Split(value, "\n") {
r := Row{}
for _, field := range strings.Split(line, separator) {