Explorar o código

Stop reduce returning nil

Angus McLeod %!s(int64=6) %!d(string=hai) anos
pai
achega
a295f6fe20
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/wizard.rb

+ 1 - 0
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