Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Commit

Permalink
chore(deps-dev): bump eslint from 8.44.0 to 8.45.0 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jul 21, 2023
1 parent e1e3773 commit dc74af7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
6 changes: 2 additions & 4 deletions lib/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,15 @@ async function init (options) {
debug('%s(): merged hook data: %j', hookName, finalData)

return finalData
} else
// for the `response` hook, return the first non-falsy value
if (hookName === 'response') {
} else if (hookName === 'response') {
const response = results.find((result) => result)

debug('%s(): first result: %j', hookName, response)

return response
} else
// for the `read` hook, return the first non-falsy value
if (hookName === 'read') {
} else if (hookName === 'read') {
const response = results.find((result) => result)

debug('%s(): first result: %j', hookName, response)
Expand Down
16 changes: 6 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dc74af7

Please sign in to comment.