Browse Source

added else block

Former-commit-id: 660ad7857e60fb66b3a2f9a2341057599fd0fa46
Gildas 6 năm trước cách đây
mục cha
commit
01cbc33254
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      cli/back-ends/puppeteer.js

+ 2 - 1
cli/back-ends/puppeteer.js

@@ -140,8 +140,9 @@ exports.getPageData = async options => {
 					jsRedirects++;
 					if (jsRedirects < MAX_JS_REDIRECTS) {
 						return exports.getPageData(options);
+					} else {
+						throw error;
 					}
-					throw error;
 				}
 			} else {
 				throw error;