Skip to content

Commit f2ed4fa

Browse files
chore: return nil as err already handled
1 parent 9078242 commit f2ed4fa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cli/cliui/select.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func Select(inv *serpent.Invocation, opts SelectOptions) (string, error) {
9696
tea.WithInput(inv.Stdin),
9797
tea.WithOutput(inv.Stdout),
9898
).Run()
99-
10099
if err != nil {
101100
return "", err
102101
}
@@ -110,7 +109,7 @@ func Select(inv *serpent.Invocation, opts SelectOptions) (string, error) {
110109
return "", Canceled
111110
}
112111

113-
return model.selected, err
112+
return model.selected, nil
114113
}
115114

116115
type selectModel struct {
@@ -297,7 +296,6 @@ func MultiSelect(inv *serpent.Invocation, opts MultiSelectOptions) ([]string, er
297296
tea.WithInput(inv.Stdin),
298297
tea.WithOutput(inv.Stdout),
299298
).Run()
300-
301299
if err != nil {
302300
return nil, err
303301
}
@@ -311,7 +309,7 @@ func MultiSelect(inv *serpent.Invocation, opts MultiSelectOptions) ([]string, er
311309
return nil, Canceled
312310
}
313311

314-
return model.selectedOptions(), err
312+
return model.selectedOptions(), nil
315313
}
316314

317315
type multiSelectOption struct {

0 commit comments

Comments
 (0)