mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
移除多餘的區塊 for Sulfura 判斷
This commit is contained in:
parent
5db134a70f
commit
b713be03e6
@ -14,7 +14,7 @@ class GildedRose {
|
||||
if (item.name.equals("Aged Brie")) {
|
||||
|
||||
plusOneQuilaty_if_less_than_fifth(item);
|
||||
|
||||
item.sellIn = item.sellIn - 1;
|
||||
} else if (item.name.equals("Backstage passes to a TAFKAL80ETC concert")) {
|
||||
|
||||
if (item.quality < 50) {
|
||||
@ -28,18 +28,16 @@ class GildedRose {
|
||||
plusOneQuilaty_if_less_than_fifth(item);
|
||||
}
|
||||
}
|
||||
item.sellIn = item.sellIn - 1;
|
||||
} else if (item.name.equals("Sulfuras, Hand of Ragnaros")) {
|
||||
|
||||
} else {
|
||||
|
||||
caculateQuilaty_without_Sulfuras(item);
|
||||
}
|
||||
|
||||
if (item.name.equals("Sulfuras, Hand of Ragnaros")) {
|
||||
|
||||
} else {
|
||||
item.sellIn = item.sellIn - 1;
|
||||
}
|
||||
|
||||
|
||||
if (item.sellIn < 0) {
|
||||
if (item.name.equals("Aged Brie")) {
|
||||
plusOneQuilaty_if_less_than_fifth(item);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user