Skip to content

Commit

Permalink
🚮 remove unnecessary operation
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 20, 2022
1 parent ca3ba2e commit f4dfc18
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/classes/Pricelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,10 +650,7 @@ export default class Pricelist extends EventEmitter {

await this.validateEntry(entry, src, isBulk);

// Remove old price
await this.removePrice(priceKey, false);

// Add new price
// Update to new price
this.prices[priceKey] = entry;

if (emitChange) {
Expand Down

0 comments on commit f4dfc18

Please sign in to comment.