mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Use RTEST to check truthy
This commit is contained in:
parent
1cbf0cd40f
commit
7a9fc74262
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue