Skip to content

Commit 7770758

Browse files
benkeeniclanton
andauthored
Update libraries/rush-lib/src/logic/pnpm/PnpmOptionsConfiguration.ts
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 042721c commit 7770758

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,7 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
556556
* Updates globalCatalogs field of the PNPM options in the common/config/rush/pnpm-config.json file.
557557
*/
558558
public updateGlobalCatalogs(catalogs: Record<string, Record<string, string>> | undefined): void {
559-
if (catalogs === undefined) {
560-
delete this._json.globalCatalogs;
561-
} else {
562-
this._json.globalCatalogs = catalogs;
563-
}
559+
this._json.globalCatalogs = catalogs;
564560
if (this.jsonFilename) {
565561
JsonFile.save(this._json, this.jsonFilename, { updateExistingFile: true });
566562
}

0 commit comments

Comments
 (0)