Skip to content

Commit 452926b

Browse files
Fix linting (#106)
We don't need depguard in this repo
1 parent dc85eed commit 452926b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[linters]
22
enable = [
3-
"depguard",
43
"dogsled",
54
"exportloopref",
65
"forcetypeassert",

pkg/server/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (s *Server) getEvalDiags(doc *document) (diags []protocol.Diagnostic) {
159159
lines := strings.Split(doc.err.Error(), "\n")
160160
if len(lines) == 0 {
161161
log.Errorf("publishDiagnostics: expected at least two lines of Jsonnet evaluation error output, got: %v\n", lines)
162-
return
162+
return diags
163163
}
164164

165165
var match []string

0 commit comments

Comments
 (0)