mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
fix: lint issues
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user