Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mohak Kataria <mohakkataria@outlook.com>
  • Loading branch information
thejuan and mohakkataria committed Jul 7, 2023
1 parent 5d249c7 commit fea883d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/pint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ func actionLint(c *cli.Context) error {
}

func report(summary reporter.Summary, reporters *config.Reporters) error {
if reporters != nil {
if reporters != nil && reporters.JSON != nil {
if reporters.JSON != nil {
r := reporter.NewJSONReporter(reporters.JSON.Path)
err := r.Submit(summary.Reports())
if err := r.Submit(summary.Reports()); err != nil { return err; }
if err != nil {

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / ci

undefined: err

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / build

undefined: err

Check failure on line 127 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: err
return err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / ci

undefined: err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / test-go

undefined: err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / build

undefined: err

Check failure on line 128 in cmd/pint/lint.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: err (typecheck)
}
Expand Down

0 comments on commit fea883d

Please # to comment.