Skip to content

Commit

Permalink
Extract variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Nov 30, 2024
1 parent 45385d0 commit 0a29356
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Review/Rule.elm
Original file line number Diff line number Diff line change
Expand Up @@ -5860,11 +5860,13 @@ findFixHelp project fixablePredicate errors accErrors maybeModuleZipper =

fixResultErr ->
fixResultErr

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

Expand Down

0 comments on commit 0a29356

Please sign in to comment.