mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-21 09:21:08 +00:00
Simplify equasion
This commit is contained in:
parent
f040a5d3fb
commit
d128595952
@ -56,7 +56,7 @@ class GildedRose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
currentItem.quality = currentItem.quality - currentItem.quality;
|
currentItem.quality = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (currentItem.quality < MAX_QUALITY_LEVEL) {
|
if (currentItem.quality < MAX_QUALITY_LEVEL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user