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