From f41a807d6e0276e3a3964bfb82e3d510ba7b0238 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 13 Apr 2020 17:16:34 +0200 Subject: [PATCH] better structure of analyzer --- src/model/page-analyzer.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/model/page-analyzer.js b/src/model/page-analyzer.js index 31237d0..2e97cf7 100644 --- a/src/model/page-analyzer.js +++ b/src/model/page-analyzer.js @@ -225,7 +225,7 @@ class PageAnalyzer { break; } } - + resolve(result); } catch(e) { reject(e); } finally { @@ -233,8 +233,6 @@ class PageAnalyzer { await this.close(); } catch (e) {/* no-op */} } - - resolve(result); }); } @@ -311,6 +309,10 @@ class PageAnalyzer { } } + get abandoned() { + return this._abandoned; + } + /** * Test if the value lives up to the requirements for being a match * @param value