summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-07 13:57:07 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-07 13:57:07 (GMT)
commit4d351c7b242a7b2fd4bcca6f9d1ef7c63b03ffd1 (patch)
tree5e1aeb9555b69d07c3516bd9124267a23c7b9ffd /error.c
parent646b24a9c8cf69309b66bb2cdf02eb83388cd409 (diff)
Remove redundant RTEST
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/error.c b/error.c
index b0a2a12..aaaa046 100644
--- a/error.c
+++ b/error.c
@@ -1463,7 +1463,7 @@ nometh_err_initialize_options(int argc, VALUE *argv, VALUE self, VALUE options)
VALUE args = (argc > 2) ? argv[--argc] : Qnil;
name_err_initialize_options(argc, argv, self, options);
rb_ivar_set(self, id_args, args);
- rb_ivar_set(self, id_private_call_p, RTEST(priv) ? Qtrue : Qfalse);
+ rb_ivar_set(self, id_private_call_p, priv);
return self;
}