Use RTEST to check truthy

This commit is contained in:
Takashi Kokubun 2015-11-28 11:29:31 +09:00
parent 1cbf0cd40f
commit 7a9fc74262
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ attr_build_id(VALUE escape_attrs, VALUE ids)
truthy_ids = rb_ary_new2(len);
for (i = 0; i < len; i++) {
id = rb_ary_entry(ids, i);
if (!NIL_P(id) && id != Qfalse) {
if (RTEST(id)) {
rb_ary_push(truthy_ids, id);
}
}