Skip to content

Commit

Permalink
better structure of analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
pbvahlst committed Apr 13, 2020
1 parent 6845152 commit f41a807
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/model/page-analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,14 @@ class PageAnalyzer {
break;
}
}

resolve(result);
} catch(e) {
reject(e);
} finally {
try {
await this.close();
} catch (e) {/* no-op */}
}

resolve(result);
});
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f41a807

Please sign in to comment.