mirror of
https://github.com/microsoft/pyright.git
synced 2024-10-06 12:57:14 +03:00
Improved comment for clarity.
This commit is contained in:
parent
edaeab2bc2
commit
9ea762f416
@ -1489,8 +1489,8 @@ export class Program {
|
||||
newImports.push(newImport);
|
||||
}
|
||||
});
|
||||
// Only mutate if absolutely necessary otherwise we
|
||||
// can end up rebinding a lot of files we don't need to.
|
||||
|
||||
// Mutate only when necessary to avoid extra binding operations.
|
||||
if (
|
||||
newImports.length !== sourceFileInfo.imports.length ||
|
||||
!newImports.every((i) => sourceFileInfo.imports.includes(i))
|
||||
|
Loading…
Reference in New Issue
Block a user