Remove Output type

This commit is contained in:
Jeroen Engels 2023-04-10 11:26:13 +02:00
parent 6a8ae9ce5e
commit 475c6bf11c

View File

@ -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