From a295f6fe202b56964029462eb0e5366e1b2ea095 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Wed, 25 Apr 2018 11:15:19 +1000 Subject: [PATCH] Stop reduce returning nil --- lib/wizard.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wizard.rb b/lib/wizard.rb index 2a58f751..820dd82f 100644 --- a/lib/wizard.rb +++ b/lib/wizard.rb @@ -132,6 +132,7 @@ class CustomWizard::Wizard name = data['name'] wizard = CustomWizard::Wizard.new(user, id: id, name: name) result.push(id: id, name: name) if !wizard.completed? + result end else false