Skip to content

Commit

Permalink
convert traditional closure to arrow function so it won't be consider…
Browse files Browse the repository at this point in the history
…ed uncovered
  • Loading branch information
aelliott-atlas committed Oct 19, 2023
1 parent d8bc326 commit 5e7ade8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/claims/PassportProfileMapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ PassportProfileMapper.prototype.getClaims = function () {

Object.keys(this._pu).filter(function (k) {
return !~dontRemapAttributes.indexOf(k);
}).forEach(function (k) {
claims['http://schemas.passportjs.com/' + k] = this._pu[k];
}.bind(this));
}).forEach((k) => { claims['http://schemas.passportjs.com/' + k] = this._pu[k]});

return claims;
};
Expand Down

0 comments on commit 5e7ade8

Please sign in to comment.