Skip to content

Return empty array when golangci-lint return empty #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2020

Conversation

kitagry
Copy link
Contributor

@kitagry kitagry commented Mar 15, 2020

Hi @nametake , thanks for the nice language server!

When golangci-lint doesn't returns an error, this will be returned as:

{"uri":"file:///path/to/file.go","diagnostics":null}

But I think diagnostics should be an empty array, not null. So, I fixed it.
Please feel free to merge this PR. Thanks.

@nametake nametake merged commit 0ee3aa9 into nametake:master Mar 15, 2020
@nametake
Copy link
Owner

Thank you!

@kitagry kitagry deleted the return-empty-array branch March 15, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants