summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/ruby.h b/ruby.h
index 8790a2863b9..f9dad9b08a2 100644
--- a/ruby.h
+++ b/ruby.h
@@ -638,9 +638,7 @@ rb_class_of(obj)
if (obj == Qnil) return rb_cNilClass;
if (obj == Qfalse) return rb_cFalseClass;
}
- else{
- return RBASIC(obj)->klass;
- }
+ return RBASIC(obj)->klass;
}
static inline int
@@ -661,9 +659,7 @@ rb_type(obj)
if (obj == Qnil) return T_NIL;
if (obj == Qfalse) return T_FALSE;
}
- else{
- return BUILTIN_TYPE(obj);
- }
+ return BUILTIN_TYPE(obj);
}
static inline int