ruby-changes:50168
From: kazu <ko1@a...>
Date: Wed, 7 Feb 2018 22:57:13 +0900 (JST)
Subject: [ruby-changes:50168] kazu:r62286 (trunk): Remove redundant RTEST
kazu 2018-02-07 22:57:07 +0900 (Wed, 07 Feb 2018) New Revision: 62286 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62286 Log: Remove redundant RTEST Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 62285) +++ error.c (revision 62286) @@ -1463,7 +1463,7 @@ nometh_err_initialize_options(int argc, https://github.com/ruby/ruby/blob/trunk/error.c#L1463 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/