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