summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-05-25 10:51:28 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-05-25 15:24:24 +1200
commit9a8fc4e04cc85b640c9ca569fe680850adc877fc (patch)
treefe01034148ac04034b8ed59b9404a44675b36757 /variable.c
parent42bcc629fba518215c844488223bc279006a4fa2 (diff)
Tidy up redundant returns.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5926
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/variable.c b/variable.c
index b04d0f6711..5c041e92ac 100644
--- a/variable.c
+++ b/variable.c
@@ -2722,9 +2722,7 @@ rb_autoload_load(VALUE module, ID name)
arguments.flag = ce->flag & (CONST_DEPRECATED | CONST_VISIBILITY_MASK);
// Only one thread will enter here at a time:
- VALUE result = rb_mutex_synchronize(arguments.mutex, autoload_try_load, (VALUE)&arguments);
-
- return result;
+ return rb_mutex_synchronize(arguments.mutex, autoload_try_load, (VALUE)&arguments);
}
VALUE