Skip to content

Commit

Permalink
Inline
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Nov 30, 2024
1 parent c65f383 commit 10d98d5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Review/Rule.elm
Original file line number Diff line number Diff line change
Expand Up @@ -5846,13 +5846,10 @@ findFixHelp project fixablePredicate errors accErrors maybeModuleZipper =
findFixHelp project fixablePredicate restOfErrors (err :: accErrors) maybeModuleZipper

firstFix :: restOfFixes ->
let
appliedFixes : Result (Error {}) { project : ValidProject, fixedFile : FixedFile }
appliedFixes =
applyFix project maybeModuleZipper err firstFix
|> Result.andThen (\fixResult -> applyFixes maybeModuleZipper err restOfFixes fixResult)
in
case appliedFixes of
case
applyFix project maybeModuleZipper err firstFix
|> Result.andThen (\fixResult -> applyFixes maybeModuleZipper err restOfFixes fixResult)
of
Ok fixResult ->
FoundFixHelp (errors ++ accErrors) { project = fixResult.project, fixedFile = fixResult.fixedFile, error = errorToReviewError err }

Expand Down

0 comments on commit 10d98d5

Please sign in to comment.