@@ -37,25 +37,23 @@ export const runSteps = (steps: StepsList): void => {
37
37
if (
38
38
! isEnumValue (
39
39
enumsToCheck ,
40
- steps . map ( step => step . step )
40
+ steps . map ( item => item . step )
41
41
)
42
42
) {
43
43
throw new Error ( 'One or more steps are unrecognized.' )
44
44
}
45
45
46
- // evaluate each step and execute the appropriate function
47
-
48
- steps . forEach ( step => {
49
- if ( isEnumValue ( [ SetupActions ] , step . step ) ) {
50
- executeSetupSteps ( step )
51
- } else if ( isEnumValue ( [ SetupVerifications ] , step ) ) {
52
- executeVerificationStep ( step )
53
- } else if ( isEnumValue ( [ UniversalActions ] , step ) ) {
54
- executeUniversalAction ( step )
55
- } else if ( isEnumValue ( [ ModActions ] , step ) ) {
56
- executeModSteps ( step )
57
- } else if ( isEnumValue ( [ ModVerifications ] , step ) ) {
58
- executeVerifyModStep ( step )
46
+ steps . forEach ( item => {
47
+ if ( isEnumValue ( [ SetupActions ] , item . step ) ) {
48
+ executeSetupSteps ( item )
49
+ } else if ( isEnumValue ( [ SetupVerifications ] , item . step ) ) {
50
+ executeVerificationStep ( item )
51
+ } else if ( isEnumValue ( [ UniversalActions ] , item . step ) ) {
52
+ executeUniversalAction ( item )
53
+ } else if ( isEnumValue ( [ ModActions ] , item . step ) ) {
54
+ executeModSteps ( item )
55
+ } else if ( isEnumValue ( [ ModVerifications ] , item . step ) ) {
56
+ executeVerifyModStep ( item )
59
57
}
60
58
} )
61
59
}
0 commit comments