diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index bf89ff6e1..310ee82ab 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -2159,11 +2159,9 @@ public: Replaceall(tm, "$error", "error"); Printf(rescue->code, "if (%s == 0) ", depthCountName); Printv(rescue->code, Str(tm), "\n", NIL); - Printv(rescue->code, "else {\n", NIL); Printf(rescue->code, "%s--;\n", depthCountName); Printv(rescue->code, "rb_exc_raise(error);\n", NIL); Printv(rescue->code, "}", NIL); - Printv(rescue->code, "}", NIL); // Main code Wrapper_add_localv(w, "args", "swig_body_args", "args", NIL);