Use consistent style [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-12-02 23:43:53 +09:00
parent bb0ec7df32
commit f28e79caaa
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
5 changed files with 12 additions and 6 deletions

View file

@ -1385,12 +1385,14 @@ callable_method_entry_or_negative(VALUE klass, ID mid, VALUE *defined_class_ptr)
// This is exposed for YJIT so that we can make assumptions that methods are
// not defined.
const rb_callable_method_entry_t *
rb_callable_method_entry_or_negative(VALUE klass, ID mid) {
rb_callable_method_entry_or_negative(VALUE klass, ID mid)
{
return callable_method_entry_or_negative(klass, mid, NULL);
}
static const rb_callable_method_entry_t *
callable_method_entry(VALUE klass, ID mid, VALUE *defined_class_ptr) {
callable_method_entry(VALUE klass, ID mid, VALUE *defined_class_ptr)
{
const rb_callable_method_entry_t *cme;
cme = callable_method_entry_or_negative(klass, mid, defined_class_ptr);
return !UNDEFINED_METHOD_ENTRY_P(cme) ? cme : NULL;