File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -82,26 +82,12 @@ const parsers = {
82
82
errors : testObject . errors . map (
83
83
( errorObject ) => {
84
84
const nextSuggestions = errorObject . suggestions && {
85
- suggestions : errorObject . suggestions . map (
86
- ( suggestion ) => {
87
- const nextSuggestion = Object . assign (
88
- { } ,
89
- suggestion ,
90
- { output : suggestion . output + extraComment }
91
- ) ;
92
-
93
- return nextSuggestion ;
94
- }
95
- ) ,
85
+ suggestions : errorObject . suggestions . map ( ( suggestion ) => Object . assign ( { } , suggestion , {
86
+ output : suggestion . output + extraComment ,
87
+ } ) ) ,
96
88
} ;
97
89
98
- const nextErrorObject = Object . assign (
99
- { } ,
100
- errorObject ,
101
- nextSuggestions
102
- ) ;
103
-
104
- return nextErrorObject ;
90
+ return Object . assign ( { } , errorObject , nextSuggestions ) ;
105
91
}
106
92
) ,
107
93
} ;
You can’t perform that action at this time.
0 commit comments