Skip to content

Commit

Permalink
Removing dep lodash call 'pluck' in favor of map
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Mutt committed Oct 9, 2020
1 parent de415a5 commit f76715e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubot-plusplus-expanded",
"version": "1.1.4",
"version": "1.1.5",
"description": "A hubot script for micro praise",
"main": "index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/plusplus.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ module.exports = function plusPlus(robot) {

if (topOrBottom === 'top') {
const graphSize = Math.min(tops.length, Math.min(amount, 20));
message.splice(0, 0, clark(_.first(_.pluck(tops, 'score'), graphSize)));
message.splice(0, 0, clark(_.first(_.map(tops, 'score'), graphSize)));
}

return msg.send(message.join('\n'));
Expand Down

0 comments on commit f76715e

Please sign in to comment.