ext/byebug/byebug.c in byebug-4.0.3 vs ext/byebug/byebug.c in byebug-4.0.4
- old
+ new
@@ -601,25 +601,19 @@
* +start+; That is, +true+ is returned, unless byebug was previously started.
*/
static VALUE
Start(VALUE self)
{
- VALUE result;
+ if (IS_STARTED)
+ return Qfalse;
- UNUSED(self);
+ catchpoints = rb_hash_new();
- if (IS_STARTED)
- result = Qfalse;
- else
- {
- catchpoints = rb_hash_new();
- threads = create_threads_table();
+ threads = create_threads_table();
- register_tracepoints(self);
- result = Qtrue;
- }
+ register_tracepoints(self);
- return result;
+ return Qtrue;
}
/*
* call-seq:
* Byebug.debug_load(file, stop = false) -> nil