Skip to content

Commit 5725c35

Browse files
authored
Merge pull request #62 from alexandear-org/refactor/simplify-handler
refactor: remove unnecessary code for modern Go
2 parents c917fe2 + e3cfbbf commit 5725c35

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

handler.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ func (h *langHandler) lint(uri DocumentURI) ([]Diagnostic, error) {
9090
h.logger.DebugJSON("golangci-lint-langserver: result:", result)
9191

9292
for _, issue := range result.Issues {
93-
issue := issue
94-
9593
if file != issue.Pos.Filename {
9694
continue
9795
}
@@ -117,13 +115,6 @@ func (h *langHandler) lint(uri DocumentURI) ([]Diagnostic, error) {
117115
return diagnostics, nil
118116
}
119117

120-
func max(a, b int) int {
121-
if a > b {
122-
return a
123-
}
124-
return b
125-
}
126-
127118
func (h *langHandler) diagnosticMessage(issue *Issue) string {
128119
if h.noLinterName {
129120
return issue.Text

0 commit comments

Comments
 (0)