Skip to content

Commit 94a6d90

Browse files
benkeeniclanton
andauthored
Update libraries/rush-lib/src/logic/pnpm/PnpmWorkspaceFile.ts
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 0f3f805 commit 94a6d90

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

libraries/rush-lib/src/logic/pnpm/PnpmWorkspaceFile.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ export class PnpmWorkspaceFile extends BaseWorkspaceFile {
7373
const content: string = await FileSystem.readFileAsync(workspaceYamlFilename);
7474
const parsed: IPnpmWorkspaceYaml | undefined = yamlModule.load(content) as IPnpmWorkspaceYaml | undefined;
7575

76-
if (!parsed || !parsed.catalogs) {
77-
return undefined;
78-
}
79-
80-
return parsed.catalogs;
76+
return parsed?.catalogs;
8177
}
8278

8379
/**

0 commit comments

Comments
 (0)