Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 9, 2021
1 parent b164213 commit 7115197
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
},
"homepage": "https://github.com/ljharb/can-merge#readme",
"devDependencies": {
"@ljharb/eslint-config": "^19.0.1",
"@ljharb/eslint-config": "^20.0.0",
"aud": "^1.1.5",
"eslint": "^8.3.0",
"eslint": "^8.4.1",
"in-publish": "^2.0.1",
"nyc": "^15.1.0",
"object.fromentries": "^2.0.5",
"safe-publish-latest": "^2.0.0",
"t": "^0.5.1",
"tap-spec": "^5.0.0",
"tape": "^5.3.2"
},
Expand Down
7 changes: 3 additions & 4 deletions utils/parsePullRequest.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* eslint-disable max-len */
/* eslint-disable operator-linebreak */

'use strict';

module.exports = function parsePullRequest(response) {
return response.pullRequest
? [response.pullRequest]
: response.commit?.associatedPullRequests.edges.flatMap(({ node }) => node) || response.pullRequests?.nodes || [];
: response.commit?.associatedPullRequests.edges.flatMap(({ node }) => node)
|| response.pullRequests?.nodes
|| [];
};

0 comments on commit 7115197

Please sign in to comment.