return from proc with recent ruby will return from method not proc, need next
authorGuillaume Cottenceau <gc@mnc.ch>
Wed, 20 Jun 2018 07:52:44 +0000 (09:52 +0200)
committerGuillaume Cottenceau <gc@mnc.ch>
Wed, 20 Jun 2018 07:52:44 +0000 (09:52 +0200)
bin/booh-classifier

index f1f3adb..8e5da45 100644 (file)
@@ -1485,7 +1485,7 @@ def execute
         table.attach(examples, 2, 3, row, row + 1, Gtk::FILL, Gtk::FILL, 5, 5)
 
         if counter == 0
-            return {}
+            next {}
         end
 
         combostore = Gtk::ListStore.new(Gdk::Pixbuf, String)