From 1a948f1d9cad499850d16939c199712ef1a083c2 Mon Sep 17 00:00:00 2001 From: Matt Soucy Date: Fri, 24 Feb 2023 22:49:35 -0500 Subject: [PATCH] Get rid of ugly nil --- 2022/11-setlist/deck.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/11-setlist/deck.rb b/2022/11-setlist/deck.rb index 7fbbe03..7693d7b 100644 --- a/2022/11-setlist/deck.rb +++ b/2022/11-setlist/deck.rb @@ -50,7 +50,7 @@ Squib::Deck.new(cards: data.nrows) do rect layout: :description text layout: :description, str: data.effect.zip(data.blurb).map { |e, b| - "#{e}#{b ? "\n#{b}" : nil}" + "#{e}#{if b then "\n#{b}" end}" } do |embed| embed.svg key: '{A}', width: 32, height: 32, data: Icons::AUDIENCE embed.svg key: '{l}', width: 32, height: 32, data: Icons::LOVE