Skip to content

Commit

Permalink
Change more proper grammer
Browse files Browse the repository at this point in the history
Use `!metadata` instead of `metadata == NULL`.
  • Loading branch information
kanata2 committed Jun 23, 2017
1 parent 5cc8675 commit acebb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mysql2/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ static VALUE fields(VALUE self) {
#endif

metadata = mysql_stmt_result_metadata(stmt);
if (metadata == NULL) {
if (!metadata) {
return rb_ary_new();
}
fields = mysql_fetch_fields(metadata);
Expand Down

0 comments on commit acebb04

Please sign in to comment.