Skip to content

fix(luacheck) filter out unnecessary lines

qiniu-x / golangci-lint failed Jun 21, 2024 in 18s

golangci-lint found 2 issues related to your changes

If you have any questions about this comment, feel free to raise an issue here.

Annotations

Check warning on line 59 in internal/linters/lua/luacheck/luacheck.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

internal/linters/lua/luacheck/luacheck.go#L59

commentFormatting: put a space between `//` and comment text (gocritic)

Check warning on line 47 in internal/linters/lua/luacheck/luacheck.go

See this annotation in the file changed.

@qiniu-x qiniu-x / golangci-lint

internal/linters/lua/luacheck/luacheck.go#L47

return both the `nil` error and invalid value: use a sentinel error instead (nilnil)