Skip to content

Commit 75dc8b6

Browse files
chore(cli): lint fix
1 parent 20c2e06 commit 75dc8b6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

service/cli/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func newRootCommand(ctx context.Context, sp *app.ServiceProvider) *cobra.Command
2323
}
2424

2525
},
26-
RunE: func(cmd *cobra.Command, args []string) error {
26+
RunE: func(_ *cobra.Command, _ []string) error {
2727
p := tea.NewProgram(
2828
tui.InitialAuthModel(ctx, sp),
2929
tea.WithAltScreen(),

service/cli/internal/tui/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ type listItem struct {
77

88
func (i listItem) Title() string { return i.title }
99
func (i listItem) Description() string { return i.desc }
10-
func (i listItem) FilterValue() string { return i.title }
10+
func (i listItem) FilterValue() string { return i.title }

service/cli/internal/tui/create_chat.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ func (m createChatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
7979
if m.cursorMode > cursor.CursorHide {
8080
m.cursorMode = cursor.CursorBlink
8181
}
82-
cmds := make([]tea.Cmd, 1)
8382

84-
cmds[0] = m.name.Cursor.SetMode(m.cursorMode)
83+
return m, m.name.Cursor.SetMode(m.cursorMode)
8584

86-
return m, tea.Batch(cmds...)
8785
case tea.KeyShiftTab:
8886
chatListModel := InitialChatListModel(m.ctx, m.sp, m.width, m.height)
8987
return chatListModel, chatListModel.Init()

service/cli/internal/tui/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (m registerModel) View() string {
102102
b.WriteString(helpStyle.Render("press Tab to switch to login."))
103103

104104
content := addMargin(b.String())
105-
105+
106106
return content
107107

108108
}

0 commit comments

Comments
 (0)