Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from change/chris/eslint-security-updates
Browse files Browse the repository at this point in the history
eslint security updates
  • Loading branch information
quaelin authored Aug 14, 2019
2 parents f02ec35 + ac459bd commit 742bb30
Show file tree
Hide file tree
Showing 4 changed files with 363 additions and 515 deletions.
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ function scan(options, redis) {
.then(() => null)
.catch(err => err)
.then((err) => {
self.write(_.extend(
{ keysScanned, keysSelected },
err ? { error: err.message || String(err) } : null,
_.omit(options, 'password')
));
self.write({
keysScanned,
keysSelected,
...err ? { error: err.message || String(err) } : null,
..._.omit(options, 'password'),
});
self.end();
return err;
}));
Expand Down
Loading

0 comments on commit 742bb30

Please sign in to comment.