From 9743c14949ed4549e2adaedc8a125ed41322e32b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 17 Feb 2022 23:29:27 +0200 Subject: [PATCH] remove redundant check in extract_entry --- vlib/szip/szip.v | 3 --- 1 file changed, 3 deletions(-) diff --git a/vlib/szip/szip.v b/vlib/szip/szip.v index d763826ac6..a798b5106b 100644 --- a/vlib/szip/szip.v +++ b/vlib/szip/szip.v @@ -222,9 +222,6 @@ pub fn (mut zentry Zip) read_entry_buf(buf voidptr, in_bsize int) ?int { // extract_entry extracts the current zip entry into output file. pub fn (mut zentry Zip) extract_entry(path string) ? { - if !os.is_file(path) { - return error('szip: cannot open file for extracting, "$path" not exists') - } res := C.zip_entry_fread(zentry, &char(path.str)) if res != 0 { return error('szip: failed to extract entry')