Skip to content

Commit e73d2fe

Browse files
committed
Fix 3 lint issues: ineffassign + staticcheck
1 parent 38853ad commit e73d2fe

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

analytics/health.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ func ComputeSessionHealth(toolCalls, toolErrors, editRetries, compactions, midTa
1212
score := 100
1313
signals := map[string]int{}
1414

15-
if outcome == "errored" {
15+
switch outcome {
16+
case "errored":
1617
signals["outcome_errored"] = -30
1718
score += signals["outcome_errored"]
18-
} else if outcome == "abandoned" {
19+
case "abandoned":
1920
signals["outcome_abandoned"] = -15
2021
score += signals["outcome_abandoned"]
2122
}

cmd/chat_view.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ func (m chatModel) View() string {
334334
}
335335
}
336336
bottomBar.WriteString(dimStyle.Render("? for help") + "\n")
337-
bottomBarLines++
338337
}
339338

340339
return m.viewport.View() + "\n" + bottomBar.String()

repomap/interface_extract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func formatFuncSig(fset *token.FileSet, fn *ast.FuncDecl) string {
105105
}
106106

107107
func formatTypeSpec(ts *ast.TypeSpec) string {
108-
kind := "struct"
108+
var kind string
109109
switch ts.Type.(type) {
110110
case *ast.InterfaceType:
111111
kind = "interface"

0 commit comments

Comments
 (0)