Skip to content

Commit

Permalink
Prefer async/await to .then() in evaluate().
Browse files Browse the repository at this point in the history
Co-Authored-By: Andreas Lind <andreaslindpetersen@gmail.com>
  • Loading branch information
alexjeffburke and papandreou authored Jan 2, 2020
1 parent f8d3bb1 commit f994e99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class Snippets {
}

async evaluate(options) {
return evaluateSnippets(this.items, options).then(() => this);
await evaluateSnippets(this.items, options)
return this;
}

get(index) {
Expand Down

0 comments on commit f994e99

Please sign in to comment.