mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-27 02:19:27 +03:00
Remove Output type
This commit is contained in:
parent
6a8ae9ce5e
commit
475c6bf11c
@ -4541,11 +4541,6 @@ computeDependencies reviewOptions project ruleProjectVisitors fixedErrors =
|
||||
}
|
||||
|
||||
|
||||
type Output
|
||||
= FoundNoFixes { project : ValidProject, ruleProjectVisitors : List RuleProjectVisitor, step : Step, fixedErrors : FixedErrors }
|
||||
| FoundFixes { project : ValidProject, ruleProjectVisitors : List RuleProjectVisitor, step : Step, fixedErrors : FixedErrors }
|
||||
|
||||
|
||||
computeFinalProjectEvaluation :
|
||||
ReviewOptionsData
|
||||
-> ValidProject
|
||||
@ -4553,12 +4548,7 @@ computeFinalProjectEvaluation :
|
||||
-> FixedErrors
|
||||
-> { project : ValidProject, ruleProjectVisitors : List RuleProjectVisitor, step : Step, fixedErrors : FixedErrors }
|
||||
computeFinalProjectEvaluation reviewOptions project ruleProjectVisitors fixedErrors =
|
||||
case computeFinalProjectEvaluationHelp reviewOptions project fixedErrors ruleProjectVisitors [] of
|
||||
FoundNoFixes result ->
|
||||
result
|
||||
|
||||
FoundFixes result ->
|
||||
result
|
||||
computeFinalProjectEvaluationHelp reviewOptions project fixedErrors ruleProjectVisitors []
|
||||
|
||||
|
||||
computeFinalProjectEvaluationHelp :
|
||||
@ -4567,11 +4557,10 @@ computeFinalProjectEvaluationHelp :
|
||||
-> FixedErrors
|
||||
-> List RuleProjectVisitor
|
||||
-> List RuleProjectVisitor
|
||||
-> Output
|
||||
-> { project : ValidProject, ruleProjectVisitors : List RuleProjectVisitor, step : Step, fixedErrors : FixedErrors }
|
||||
computeFinalProjectEvaluationHelp reviewOptions project fixedErrors rules accRules =
|
||||
case rules of
|
||||
[] ->
|
||||
FoundNoFixes
|
||||
{ project = project
|
||||
, ruleProjectVisitors = accRules
|
||||
, step = EndAnalysis
|
||||
@ -4606,7 +4595,6 @@ computeFinalProjectEvaluationHelp reviewOptions project fixedErrors rules accRul
|
||||
Readme
|
||||
)
|
||||
in
|
||||
FoundFixes
|
||||
{ project = fixResult.project
|
||||
, ruleProjectVisitors = updatedRule :: (rest ++ accRules)
|
||||
, step = step
|
||||
|
Loading…
Reference in New Issue
Block a user