Skip to content

Commit d31950d

Browse files
committed
Return boolean directly
1 parent 0224efe commit d31950d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/isal/isal_zlib_impl.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ data_is_gzip(Py_buffer *data){
160160
if (data->len < 2)
161161
return 0;
162162
uint8_t *buf = (uint8_t *)data->buf;
163-
if (buf[0] == 31 && buf[1] == 139)
164-
return 1;
165-
return 0;
163+
return (buf[0] == 31 && buf[1] == 139);
166164
}
167165

168166
static PyObject *

0 commit comments

Comments
 (0)