Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit 474c085

Browse files
andreyneringkujtimiihoxha
authored andcommitted
lint: fix whitespace issues
1 parent 0927446 commit 474c085

6 files changed

Lines changed: 1 addition & 13 deletions

File tree

internal/diff/diff.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,7 @@ func HighlightIntralineChanges(h *Hunk) {
232232

233233
for i := 0; i < len(h.Lines); i++ {
234234
// Look for removed line followed by added line
235-
if i+1 < len(h.Lines) &&
236-
h.Lines[i].Kind == LineRemoved &&
237-
h.Lines[i+1].Kind == LineAdded {
238-
235+
if i+1 < len(h.Lines) && h.Lines[i].Kind == LineRemoved && h.Lines[i+1].Kind == LineAdded {
239236
oldLine := h.Lines[i]
240237
newLine := h.Lines[i+1]
241238

internal/llm/provider/gemini.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
365365
eventChan <- ProviderEvent{Type: EventContentStop}
366366

367367
if finalResp != nil {
368-
369368
finishReason := message.FinishReasonEndTurn
370369
if len(finalResp.Candidates) > 0 {
371370
finishReason = g.finishReason(finalResp.Candidates[0].FinishReason)
@@ -384,7 +383,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
384383
}
385384
return
386385
}
387-
388386
}
389387
}()
390388

internal/lsp/watcher/watcher.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ func (w *WorkspaceWatcher) WatchWorkspace(ctx context.Context, workspacePath str
401401
"watched", matched,
402402
"kind", kind,
403403
)
404-
405404
}
406405

407406
// Check if this path should be watched according to server registrations

internal/message/message.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ func unmarshallParts(data []byte) ([]ContentPart, error) {
274274
default:
275275
return nil, fmt.Errorf("unknown part type: %s", wrapper.Type)
276276
}
277-
278277
}
279278

280279
return parts, nil

internal/tui/components/dialog/complete.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ func (c *completionDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
138138
switch msg := msg.(type) {
139139
case tea.KeyPressMsg:
140140
if c.pseudoSearchTextArea.Focused() {
141-
142141
if !key.Matches(msg, completionDialogKeys.Complete) {
143-
144142
var cmd tea.Cmd
145143
c.pseudoSearchTextArea, cmd = c.pseudoSearchTextArea.Update(msg)
146144
cmds = append(cmds, cmd)

internal/tui/tui.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
457457
}
458458

459459
switch {
460-
461460
case key.Matches(msg, keys.Quit):
462461
a.showQuit = !a.showQuit
463462
if a.showHelp {
@@ -580,7 +579,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
580579
f, filepickerCmd := a.filepicker.Update(msg)
581580
a.filepicker = f.(dialog.FilepickerCmp)
582581
cmds = append(cmds, filepickerCmd)
583-
584582
}
585583

586584
if a.showFilepicker {
@@ -733,7 +731,6 @@ func (a appModel) View() string {
733731
appView,
734732
true,
735733
)
736-
737734
}
738735

739736
// Show compacting status overlay

0 commit comments

Comments
 (0)