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 f1f3adbb5af118ebd3bb98c687f64e20be2c7def..8e5da452622e6c0f47a5a6c84049fd0f5c86bcc4 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)