mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
refactor(cache): tiny simplification to walkTree (#359)
- the `acyclic` var is literally only used in one place, directly below its instantiation - so don't use a var at all instead for simplicity
This commit is contained in:
parent
a31cda15a9
commit
42c94b8c9d
@ -178,9 +178,7 @@ export class TsCache
|
||||
|
||||
public walkTree(cb: (id: string) => void | false): void
|
||||
{
|
||||
const acyclic = alg.isAcyclic(this.dependencyTree);
|
||||
|
||||
if (acyclic)
|
||||
if (alg.isAcyclic(this.dependencyTree))
|
||||
{
|
||||
alg.topsort(this.dependencyTree).forEach(id => cb(id));
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user