Skip to content

Commit

Permalink
Self review
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Oct 15, 2024
1 parent 31d8cdb commit d118983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ exports.modifyService = function (
if (remove) {
delete map[serviceName];
delete map[serviceName + "/"];
if (json.integrity) {
if (oldUrl && json.integrity) {
delete json.integrity[oldUrl];
}
} else {
Expand All @@ -170,7 +170,7 @@ exports.modifyService = function (
json.integrity = json.integrity ?? {};
json.integrity[url] = integrity;
}
if (oldIntegrity && json.integrity) {
if (oldUrl && json.integrity) {
delete json.integrity[oldUrl];
}
}
Expand Down

0 comments on commit d118983

Please sign in to comment.