Skip to content

Commit

Permalink
Merge pull request #490 from numtide/fix/exit-on-formatter-errors
Browse files Browse the repository at this point in the history
fix/exit on formatter errors
  • Loading branch information
brianmcgee authored Nov 29, 2024
2 parents a05a7be + ab89e0b commit 741970b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (s *scheduler) schedule(ctx context.Context, key batchKey, batch []*walk.Fi
hasErrors := len(formatErrors) > 0

// update overall error tracking
s.formatError.Store(hasErrors)
s.formatError.CompareAndSwap(false, hasErrors)

if !hasErrors {
// record that the file was formatted
Expand Down

0 comments on commit 741970b

Please sign in to comment.