This commit is contained in:
Konstantin Pavlov 2019-06-30 08:05:05 +02:00
parent 857b6cd474
commit 6842dec756

View File

@ -50,10 +50,10 @@ class GildedRose {
}
private int calculateSellIn(final String name, final int originalSellIn) {
if (!name.equals("Sulfuras, Hand of Ragnaros")) {
return originalSellIn - 1;
} else {
if ("Sulfuras, Hand of Ragnaros".equals(name)) {
return originalSellIn;
} else {
return originalSellIn - 1;
}
}