mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
- F more compact
This commit is contained in:
parent
7658124173
commit
6223bf9919
@ -3,10 +3,7 @@
|
||||
update_quality() {
|
||||
local IFS='|'
|
||||
|
||||
while read -r name sell_in_str quality_str; do
|
||||
declare -i sell_in="$sell_in_str"
|
||||
declare -i quality="$quality_str"
|
||||
|
||||
while read -r name sell_in quality; do
|
||||
if [[ $name != "Aged Brie" && $name != "Backstage passes to a TAFKAL80ETC concert" ]]; then
|
||||
if ((quality > 0)); then
|
||||
if [[ $name != "Sulfuras, Hand of Ragnaros" ]]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user