summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-08-19 01:32:00 -0300
committerPeter Kokot <peterkokot@gmail.com>2018-12-03 01:22:14 +0100
commitcdd8368d6f3f000a2e30a6be9976c5539f10fe85 (patch)
tree8f680d0c1fb552fdcbdbf3d49427c811fa789bf9 /main/rfc1867.c
parent6c16f9b69c1951392d5d0ac89d3fbd2b318af118 (diff)
downloadphp-git-cdd8368d6f3f000a2e30a6be9976c5539f10fe85.tar.gz
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
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 8a8e335ef4..e1167ebf50 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -281,11 +281,7 @@ static int fill_buffer(multipart_buffer *self)
/* eof if we are out of bytes, or if we hit the final boundary */
static int multipart_buffer_eof(multipart_buffer *self)
{
- if ( (self->bytes_in_buffer == 0 && fill_buffer(self) < 1) ) {
- return 1;
- } else {
- return 0;
- }
+ return self->bytes_in_buffer == 0 && fill_buffer(self) < 1;
}
/* create new multipart_buffer structure */