summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 4d291e677d9..2a9cff601ae 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)