Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Oct 18, 2024
1 parent 830b53f commit 6db5fdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gnovm/cmd/gno/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ func catchRuntimeError(pkgPath string, stderr io.WriteCloser, action func()) (ha
case *gno.PreprocessError:
err := verr.Unwrap()
fmt.Fprint(stderr, issueFromError(pkgPath, err).String()+"\n")
case scanner.ErrorList:
for _, err := range verr {
fmt.Fprint(stderr, issueFromError(pkgPath, err).String()+"\n")
}
case error:
errors := multierr.Errors(verr)
for _, err := range errors {
Expand All @@ -187,6 +183,8 @@ func catchRuntimeError(pkgPath string, stderr io.WriteCloser, action func()) (ha
for _, errorInList := range errList {
fmt.Fprint(stderr, issueFromError(pkgPath, errorInList).String()+"\n")
}
} else {
fmt.Fprint(stderr, issueFromError(pkgPath, err).String()+"\n")
}

Check warning on line 188 in gnovm/cmd/gno/lint.go

View check run for this annotation

Codecov / codecov/patch

gnovm/cmd/gno/lint.go#L186-L188

Added lines #L186 - L188 were not covered by tests
}
case string:
Expand Down

0 comments on commit 6db5fdc

Please sign in to comment.