mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
general refactoring
This commit is contained in:
parent
172bb39d30
commit
4b3e84facb
@ -34,7 +34,7 @@ class GildedRose {
|
||||
&& !item.name.equals("Backstage passes to a TAFKAL80ETC concert")) {
|
||||
if (item.quality > 0) {
|
||||
if (!item.name.equals("Sulfuras, Hand of Ragnaros")) {
|
||||
item.quality = item.quality - 1;
|
||||
item.quality = degradeQualityBy(item.quality, 1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -66,7 +66,7 @@ class GildedRose {
|
||||
if (!item.name.equals("Backstage passes to a TAFKAL80ETC concert")) {
|
||||
if (item.quality > 0) {
|
||||
if (!item.name.equals("Sulfuras, Hand of Ragnaros")) {
|
||||
item.quality = item.quality - 1;
|
||||
item.quality = degradeQualityBy(item.quality, 1);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user