diff --git a/thread.c b/thread.c index 4d291e677d..2a9cff601a 100644 --- a/thread.c +++ b/thread.c @@ -2831,14 +2831,12 @@ threadptr_local_aset(rb_thread_t *th, ID id, VALUE val) st_delete_wrap(th->local_storage, id); return Qnil; } - else { if (!th->local_storage) { th->local_storage = st_init_numtable(); } st_insert(th->local_storage, id, val); return val; } -} VALUE rb_thread_local_aset(VALUE thread, ID id, VALUE val)