Skip to content

Commit 00145dc

Browse files
committed
Whitespace
1 parent d11aeb3 commit 00145dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/mysql2/statement.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static VALUE intern_usec, intern_sec, intern_min, intern_hour, intern_day, inter
1212

1313
static void rb_mysql_stmt_mark(void * ptr) {
1414
mysql_stmt_wrapper* stmt_wrapper = (mysql_stmt_wrapper *)ptr;
15-
if(! stmt_wrapper) return;
15+
if (!stmt_wrapper) return;
1616

1717
rb_gc_mark(stmt_wrapper->client);
1818
}
@@ -176,7 +176,7 @@ static VALUE field_count(VALUE self) {
176176
static void *nogvl_execute(void *ptr) {
177177
MYSQL_STMT *stmt = ptr;
178178

179-
if(mysql_stmt_execute(stmt)) {
179+
if (mysql_stmt_execute(stmt)) {
180180
return (void*)Qfalse;
181181
} else {
182182
return (void*)Qtrue;
@@ -186,7 +186,7 @@ static void *nogvl_execute(void *ptr) {
186186
static void *nogvl_stmt_store_result(void *ptr) {
187187
MYSQL_STMT *stmt = ptr;
188188

189-
if(mysql_stmt_store_result(stmt)) {
189+
if (mysql_stmt_store_result(stmt)) {
190190
return (void *)Qfalse;
191191
} else {
192192
return (void *)Qtrue;
@@ -347,8 +347,8 @@ static VALUE execute(int argc, VALUE *argv, VALUE self) {
347347
FREE_BINDS;
348348

349349
metadata = mysql_stmt_result_metadata(stmt);
350-
if(metadata == NULL) {
351-
if(mysql_stmt_errno(stmt) != 0) {
350+
if (metadata == NULL) {
351+
if (mysql_stmt_errno(stmt) != 0) {
352352
// either CR_OUT_OF_MEMORY or CR_UNKNOWN_ERROR. both fatal.
353353

354354
MARK_CONN_INACTIVE(stmt_wrapper->client);

0 commit comments

Comments
 (0)