Skip to content

Commit 8e01696

Browse files
committed
refactor: simplify nested zip file validation logic in sitecoreValidator function
1 parent 3eb1eb0 commit 8e01696

File tree

1 file changed

+1
-1
lines changed
  • upload-api/src/validators/sitecore

1 file changed

+1
-1
lines changed

upload-api/src/validators/sitecore/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function sitecoreValidator({ data }: props) {
3434
}
3535

3636
// If we have nested zip files, we need to extract and check them
37-
if (hasNestedZip && nestedZipFiles.length > 0) {
37+
if (hasNestedZip) {
3838
const JSZip = require('jszip');
3939

4040
for (const nestedZipPath of nestedZipFiles) {

0 commit comments

Comments
 (0)