-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Identical branches in
cbor-ruby/ext/cbor/buffer_class.c
Lines 76 to 80 in 4e8b2ec
| } else if(rb_respond_to(io, s_read)) { | |
| return s_read; | |
| } else { | |
| return s_read; | |
| } |
cbor-ruby/ext/cbor/buffer_class.c
Lines 87 to 90 in 4e8b2ec
| } else if(rb_respond_to(io, s_append)) { | |
| return s_append; | |
| } else { | |
| return s_write; |
We can replace 'else if', this improves performance slightly
Metadata
Metadata
Assignees
Labels
No labels