summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 12:36:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-30 12:36:27 +0000
commite1b064c576007805067359479c8595a2f3cc23ef (patch)
treef87ff9f47ec43458e36da588c21357a60041fe1f /thread.c
parent1889a5b274377f48d496c35e88b9b915ccdfe633 (diff)
thread.c: fix indent
* thread.c (threadptr_local_aset): fix indent, remove unnecessary braces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 0 insertions, 2 deletions
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)