Skip to content

Commit 31a4994

Browse files
carusogabrielpetk
authored andcommitted
Clean up unnecessary ternary expressions and simplify some returns
- Simplify conditions - Use ZEND_HASH_APPLY_* instead of hard-coded booleans - Use ZEND_NORMALIZE_BOOL - Drop sign in favor of ZEND_NORMALIZE_BOOL
1 parent bcfc2bc commit 31a4994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interbase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ int _php_ibase_attach_db(char **args, size_t *len, zend_long *largs, isc_db_hand
869869
buf_len -= dpb_len;
870870
}
871871
if (largs[SYNC] && buf_len > 0) {
872-
dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync ? 1 : 0);
872+
dpb_len = slprintf(dpb, buf_len, "%c\1%c", isc_dpb_force_write, largs[SYNC] == isc_spb_prp_wm_sync);
873873
dpb += dpb_len;
874874
buf_len -= dpb_len;
875875
}

0 commit comments

Comments
 (0)