Skip to content

Commit aca2225

Browse files
Modified updateQuality method
Modify the updateQuality method in the gilded-rose.ts file. Signed-off-by: Alexandra Stroiu <[email protected]>
1 parent 13555c4 commit aca2225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/gilded-rose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class GildedRose {
4343
this.items[i].quality = (this.items[i].quality + 2 * qualityDifference) <= 50 ? (this.items[i].quality + 2 * qualityDifference) : 50;
4444
} else if (0 < this.items[i].sellIn && this.items[i].sellIn <= 5) {
4545
this.items[i].quality = (this.items[i].quality + 3 * qualityDifference) <= 50 ? (this.items[i].quality + 3 * qualityDifference) : 50;
46-
} else if (this.items[i].sellIn <= 0){
46+
} else {
4747
this.items[i].quality = 0;
4848
}
4949
}

0 commit comments

Comments
 (0)