Skip to content

Commit 177feae

Browse files
committed
Use RETURN_BOOL()
1 parent 917acec commit 177feae

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4007,11 +4007,7 @@ PHP_FUNCTION(curl_upkeep)
40074007
error = curl_easy_upkeep(ch->cp);
40084008
SAVE_CURL_ERROR(ch, error);
40094009

4010-
if (error != CURLE_OK) {
4011-
RETURN_FALSE;
4012-
} else {
4013-
RETURN_TRUE;
4014-
}
4010+
RETURN_BOOL(error == CURLE_OK);
40154011
}
40164012
/*}}} */
40174013
#endif

0 commit comments

Comments
 (0)