Skip to content

Commit 86a15f9

Browse files
authored
phar: Remove redundant *error check (php#20288)
The failure of the iterator is already checked above at line 1157.
1 parent 3a9d599 commit 86a15f9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/phar/tar.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,12 +1242,6 @@ ZEND_ATTRIBUTE_NONNULL_ARGS(1, 4) void phar_tar_flush(phar_archive_data *phar, z
12421242
php_stream_close(oldfile);
12431243
}
12441244

1245-
/* on error in the hash iterator above, error is set */
1246-
if (*error) {
1247-
php_stream_close(newfile);
1248-
return;
1249-
}
1250-
12511245
if (phar->fp && pass.free_fp) {
12521246
php_stream_close(phar->fp);
12531247
}

0 commit comments

Comments
 (0)