mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-09 03:31:28 +00:00
refactor: formatting
This commit is contained in:
parent
ab12c5c204
commit
8d3c6ebcee
@ -45,6 +45,7 @@ public class Item {
|
|||||||
quality--;
|
quality--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateBackstagePassItem() {
|
private void updateBackstagePassItem() {
|
||||||
if (quality < 50) {
|
if (quality < 50) {
|
||||||
quality++;
|
quality++;
|
||||||
@ -64,6 +65,7 @@ public class Item {
|
|||||||
quality = 0;
|
quality = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateAgedBrieItem() {
|
private void updateAgedBrieItem() {
|
||||||
if (quality < 50) {
|
if (quality < 50) {
|
||||||
quality++;
|
quality++;
|
||||||
@ -76,8 +78,8 @@ public class Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return this.name + ", " + this.sellIn + ", " + this.quality;
|
return this.name + ", " + this.sellIn + ", " + this.quality;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user