File tree 2 files changed +1
-6
lines changed
2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,6 @@ export function getModifiedData(
142
142
}
143
143
} else {
144
144
dataWithContext = getTextWithContext ( processedData , currentContext ) ;
145
- if ( stderr ) {
146
- dataWithContext [ SEVERITY ] = 'ERROR' ;
147
- }
148
145
}
149
146
150
147
return JSON . stringify ( dataWithContext ) + '\n' ;
Original file line number Diff line number Diff line change @@ -134,9 +134,7 @@ describe('getModifiedData', () => {
134
134
it ( 'simple text with error' , ( ) => {
135
135
const modifiedData = getModifiedData ( sampleText , undefined , true ) ;
136
136
const expectedOutput =
137
- JSON . stringify (
138
- Object . assign ( JSON . parse ( expectedTextOutput ) , { severity : 'ERROR' } )
139
- ) + '\n' ;
137
+ JSON . stringify ( Object . assign ( JSON . parse ( expectedTextOutput ) ) ) + '\n' ;
140
138
assert . equal ( modifiedData , expectedOutput ) ;
141
139
} ) ;
142
140
You can’t perform that action at this time.
0 commit comments