Skip to content

Commit

Permalink
Remove double lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichon-msft committed Aug 12, 2022
1 parent 2b8488e commit 68f7bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/rush-lib/src/logic/ProjectChangeAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ export class ProjectChangeAnalyzer {
let i: number = 0;
for (const projectDeps of projectHashDeps.values()) {
const projectDependencyManifestPath: string = projectDependencyManifestPaths[i];
if (!hashes.has(projectDependencyManifestPath)) {
const hash: string | undefined = hashes.get(projectDependencyManifestPath);
if (hash === undefined) {
throw new InternalError(`Expected to get a hash for ${projectDependencyManifestPath}`);
}

const hash: string = hashes.get(projectDependencyManifestPath)!;
projectDeps.set(projectDependencyManifestPath, hash);
i++;
}
Expand Down

0 comments on commit 68f7bfe

Please sign in to comment.