lint: fix whitespace issues

Andrey Nering created

Change summary

internal/diff/diff.go                      | 5 +----
internal/llm/provider/gemini.go            | 2 --
internal/lsp/watcher/watcher.go            | 1 -
internal/message/message.go                | 1 -
internal/tui/components/dialog/complete.go | 2 --
internal/tui/tui.go                        | 3 ---
6 files changed, 1 insertion(+), 13 deletions(-)

Detailed changes

internal/diff/diff.go 🔗

@@ -232,10 +232,7 @@ func HighlightIntralineChanges(h *Hunk) {
 
 	for i := 0; i < len(h.Lines); i++ {
 		// Look for removed line followed by added line
-		if i+1 < len(h.Lines) &&
-			h.Lines[i].Kind == LineRemoved &&
-			h.Lines[i+1].Kind == LineAdded {
-
+		if i+1 < len(h.Lines) && h.Lines[i].Kind == LineRemoved && h.Lines[i+1].Kind == LineAdded {
 			oldLine := h.Lines[i]
 			newLine := h.Lines[i+1]
 

internal/llm/provider/gemini.go 🔗

@@ -365,7 +365,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
 			eventChan <- ProviderEvent{Type: EventContentStop}
 
 			if finalResp != nil {
-
 				finishReason := message.FinishReasonEndTurn
 				if len(finalResp.Candidates) > 0 {
 					finishReason = g.finishReason(finalResp.Candidates[0].FinishReason)
@@ -384,7 +383,6 @@ func (g *geminiClient) stream(ctx context.Context, messages []message.Message, t
 				}
 				return
 			}
-
 		}
 	}()
 

internal/lsp/watcher/watcher.go 🔗

@@ -401,7 +401,6 @@ func (w *WorkspaceWatcher) WatchWorkspace(ctx context.Context, workspacePath str
 					"watched", matched,
 					"kind", kind,
 				)
-
 			}
 
 			// Check if this path should be watched according to server registrations

internal/message/message.go 🔗

@@ -274,7 +274,6 @@ func unmarshallParts(data []byte) ([]ContentPart, error) {
 		default:
 			return nil, fmt.Errorf("unknown part type: %s", wrapper.Type)
 		}
-
 	}
 
 	return parts, nil

internal/tui/components/dialog/complete.go 🔗

@@ -138,9 +138,7 @@ func (c *completionDialogCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 	switch msg := msg.(type) {
 	case tea.KeyPressMsg:
 		if c.pseudoSearchTextArea.Focused() {
-
 			if !key.Matches(msg, completionDialogKeys.Complete) {
-
 				var cmd tea.Cmd
 				c.pseudoSearchTextArea, cmd = c.pseudoSearchTextArea.Update(msg)
 				cmds = append(cmds, cmd)

internal/tui/tui.go 🔗

@@ -457,7 +457,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 		}
 
 		switch {
-
 		case key.Matches(msg, keys.Quit):
 			a.showQuit = !a.showQuit
 			if a.showHelp {
@@ -580,7 +579,6 @@ func (a appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
 		f, filepickerCmd := a.filepicker.Update(msg)
 		a.filepicker = f.(dialog.FilepickerCmp)
 		cmds = append(cmds, filepickerCmd)
-
 	}
 
 	if a.showFilepicker {
@@ -733,7 +731,6 @@ func (a appModel) View() string {
 			appView,
 			true,
 		)
-
 	}
 
 	// Show compacting status overlay