on main help sign in
lint: fix whitespace issues
474c085Andrey Nering
internal/diff/diff.go+1−4
@@ -232,10 +232,7 @@ func HighlightIntralineChanges(h *Hunk) {
232
232
233 for i := 0; i < len(h.Lines); i++ {
233 for i := 0; i < len(h.Lines); i++ {
234 // Look for removed line followed by added line
234 // Look for removed line followed by added line
235− if i+1 < len(h.Lines) &&
236− h.Lines[i].Kind == LineRemoved &&
235+ if i+1 < len(h.Lines) && h.Lines[i].Kind == LineRemoved && h.Lines[i+1].Kind == LineAdded {
237− h.Lines[i+1].Kind == LineAdded {
238−
239 oldLine := h.Lines[i]
236 oldLine := h.Lines[i]
240 newLine := h.Lines[i+1]
237 newLine := h.Lines[i+1]
241
238
internal/llm/provider/gemini.go−2
@@ -365,7 +365,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
365 eventChan <- ProviderEvent{Type: EventContentStop}
365 eventChan <- ProviderEvent{Type: EventContentStop}
366
366
367 if finalResp != nil {
367 if finalResp != nil {
368−
369 finishReason := message.FinishReasonEndTurn
368 finishReason := message.FinishReasonEndTurn
370 if len(finalResp.Candidates) > 0 {
369 if len(finalResp.Candidates) > 0 {
371 finishReason = g.finishReason(finalResp.Candidates[0].FinishReason)
370 finishReason = g.finishReason(finalResp.Candidates[0].FinishReason)
@@ -384,7 +383,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
384 }
383 }
385 return
384 return
386 }
385 }
387−
388 }
386 }
389 }()
387 }()
390
388
internal/lsp/watcher/watcher.go−1
@@ -401,7 +401,6 @@ func (w *WorkspaceWatcher) WatchWorkspace(ctx context.Context, workspacePath str
401 "watched", matched,
401 "watched", matched,
402 "kind", kind,
402 "kind", kind,
403 )
403 )
404−
405 }
404 }
406
405
407 // Check if this path should be watched according to server registrations
406 // Check if this path should be watched according to server registrations
internal/message/message.go−1
@@ -274,7 +274,6 @@ func unmarshallParts(data []byte) ([]ContentPart, error) {
274 default:
274 default:
275 return nil, fmt.Errorf("unknown part type: %s", wrapper.Type)
275 return nil, fmt.Errorf("unknown part type: %s", wrapper.Type)
276 }
276 }
277−
278 }
277 }
279
278
280 return parts, nil
279 return parts, nil
internal/tui/components/dialog/complete.go−2
@@ -138,9 +138,7 @@ func (c *completionDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
138 switch msg := msg.(type) {
138 switch msg := msg.(type) {
139 case tea.KeyPressMsg:
139 case tea.KeyPressMsg:
140 if c.pseudoSearchTextArea.Focused() {
140 if c.pseudoSearchTextArea.Focused() {
141−
142 if !key.Matches(msg, completionDialogKeys.Complete) {
141 if !key.Matches(msg, completionDialogKeys.Complete) {
143−
144 var cmd tea.Cmd
142 var cmd tea.Cmd
145 c.pseudoSearchTextArea, cmd = c.pseudoSearchTextArea.Update(msg)
143 c.pseudoSearchTextArea, cmd = c.pseudoSearchTextArea.Update(msg)
146 cmds = append(cmds, cmd)
144 cmds = append(cmds, cmd)
internal/tui/tui.go−3
@@ -457,7 +457,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
457 }
457 }
458
458
459 switch {
459 switch {
460−
461 case key.Matches(msg, keys.Quit):
460 case key.Matches(msg, keys.Quit):
462 a.showQuit = !a.showQuit
461 a.showQuit = !a.showQuit
463 if a.showHelp {
462 if a.showHelp {
@@ -580,7 +579,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
580 f, filepickerCmd := a.filepicker.Update(msg)
579 f, filepickerCmd := a.filepicker.Update(msg)
581 a.filepicker = f.(dialog.FilepickerCmp)
580 a.filepicker = f.(dialog.FilepickerCmp)
582 cmds = append(cmds, filepickerCmd)
581 cmds = append(cmds, filepickerCmd)
583−
584 }
582 }
585
583
586 if a.showFilepicker {
584 if a.showFilepicker {
@@ -733,7 +731,6 @@ func (a appModel) View() string {
733 appView,
731 appView,
734 true,
732 true,
735 )
733 )
736−
737 }
734 }
738
735
739 // Show compacting status overlay
736 // Show compacting status overlay