Skip to content

Commit 46f7359

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

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
@@ -534,11 +534,7 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
534534
*/
535535
public updateGlobalPatchedDependencies(patchedDependencies: Record<string, string> | undefined): void {
536536
this._globalPatchedDependencies = patchedDependencies;
537-
if (patchedDependencies === undefined) {
538-
delete this._json.globalPatchedDependencies;
539-
} else {
540-
this._json.globalPatchedDependencies = patchedDependencies;
541-
}
537+
this._json.globalPatchedDependencies = patchedDependencies;
542538
if (this.jsonFilename) {
543539
JsonFile.save(this._json, this.jsonFilename, { updateExistingFile: true });
544540
}

0 commit comments

Comments
 (0)