Skip to content

Commit dd9c0e4

Browse files
committed
Whitespace
1 parent d74bd86 commit dd9c0e4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/mysql2/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static void *nogvl_do_result(void *ptr, char use_result) {
438438
MYSQL_RES *result;
439439

440440
wrapper = (mysql_client_wrapper *)ptr;
441-
if(use_result) {
441+
if (use_result) {
442442
result = mysql_use_result(wrapper->client);
443443
} else {
444444
result = mysql_store_result(wrapper->client);
@@ -483,7 +483,7 @@ static VALUE rb_mysql_client_async_result(VALUE self) {
483483
}
484484

485485
is_streaming = rb_hash_aref(rb_iv_get(self, "@current_query_options"), sym_stream);
486-
if(is_streaming == Qtrue) {
486+
if (is_streaming == Qtrue) {
487487
result = (MYSQL_RES *)rb_thread_call_without_gvl(nogvl_use_result, wrapper, RUBY_UBF_IO, 0);
488488
} else {
489489
result = (MYSQL_RES *)rb_thread_call_without_gvl(nogvl_store_result, wrapper, RUBY_UBF_IO, 0);

ext/mysql2/result.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static VALUE rb_mysql_result_fetch_row(VALUE self, ID db_timezone, ID app_timezo
232232
VALUE val = Qnil;
233233
enum enum_field_types type = fields[i].type;
234234

235-
if(!cast) {
235+
if (!cast) {
236236
if (type == MYSQL_TYPE_NULL) {
237237
val = Qnil;
238238
} else {
@@ -479,11 +479,11 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
479479
cast = 0;
480480
}
481481

482-
if(rb_hash_aref(opts, sym_stream) == Qtrue) {
482+
if (rb_hash_aref(opts, sym_stream) == Qtrue) {
483483
streaming = 1;
484484
}
485485

486-
if(streaming && cacheRows) {
486+
if (streaming && cacheRows) {
487487
rb_warn("cacheRows is ignored if streaming is true");
488488
}
489489

@@ -601,7 +601,7 @@ static VALUE rb_mysql_result_count(VALUE self) {
601601
mysql2_result_wrapper *wrapper;
602602

603603
GetMysql2Result(self, wrapper);
604-
if(wrapper->resultFreed) {
604+
if (wrapper->resultFreed) {
605605
if (wrapper->streamingComplete){
606606
return LONG2NUM(wrapper->numberOfRows);
607607
} else {

0 commit comments

Comments
 (0)