File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -307,14 +307,14 @@ namespace ts {
307
307
/* @internal */ export function isUnicodeIdentifierStart ( code : number , languageVersion : ScriptTarget | undefined ) {
308
308
return languageVersion ! >= ScriptTarget . ES2015 ?
309
309
lookupInUnicodeMap ( code , unicodeESNextIdentifierStart ) :
310
- languageVersion ! === ScriptTarget . ES5 ? lookupInUnicodeMap ( code , unicodeES5IdentifierStart ) :
310
+ languageVersion === ScriptTarget . ES5 ? lookupInUnicodeMap ( code , unicodeES5IdentifierStart ) :
311
311
lookupInUnicodeMap ( code , unicodeES3IdentifierStart ) ;
312
312
}
313
313
314
314
function isUnicodeIdentifierPart ( code : number , languageVersion : ScriptTarget | undefined ) {
315
315
return languageVersion ! >= ScriptTarget . ES2015 ?
316
316
lookupInUnicodeMap ( code , unicodeESNextIdentifierPart ) :
317
- languageVersion ! === ScriptTarget . ES5 ? lookupInUnicodeMap ( code , unicodeES5IdentifierPart ) :
317
+ languageVersion === ScriptTarget . ES5 ? lookupInUnicodeMap ( code , unicodeES5IdentifierPart ) :
318
318
lookupInUnicodeMap ( code , unicodeES3IdentifierPart ) ;
319
319
}
320
320
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ namespace ts.codefix {
211
211
reference ;
212
212
const diagnostic = find ( diagnostics , diagnostic =>
213
213
diagnostic . start === errorNode . getStart ( sourceFile ) &&
214
- diagnostic . start + diagnostic . length ! === errorNode . getEnd ( ) ) ;
214
+ ( diagnostic . start + diagnostic . length ! ) === errorNode . getEnd ( ) ) ;
215
215
216
216
return diagnostic && contains ( errorCodes , diagnostic . code ) ||
217
217
// A Promise is usually not correct in a binary expression (it’s not valid
You can’t perform that action at this time.
0 commit comments