Skip to content

Commit

Permalink
🔀 Merge pull request #1243 from TF2Autobot/autokeys-fixes
Browse files Browse the repository at this point in the history
🚮 remove unnecessary operation
  • Loading branch information
idinium96 authored Jul 20, 2022
2 parents ca3ba2e + f4dfc18 commit f2e6db9
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 f2e6db9

Please sign in to comment.