Update linter settings and fix warnings

This commit is contained in:
Daniel 2022-02-02 14:58:27 +01:00
parent 22c59c50cc
commit 6650fb3b19
26 changed files with 102 additions and 81 deletions

View file

@ -207,7 +207,7 @@ func parseAndOr(getSnippet func() (*snippet, error), remainingSnippets func() in
for {
if !expectingMore && rootCondition && remainingSnippets() == 0 {
// advance snippetsPos by one, as it will be set back by 1
getSnippet() //nolint:errcheck
_, _ = getSnippet()
if len(conditions) == 1 {
return conditions[0], nil
}