Skip to content

Commit ec510ec

Browse files
committed
style: lint
1 parent 34fa585 commit ec510ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/fail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = async (pluginConfig, {options: {branch, repositoryUrl}, errors,
1414
const {name: repo, owner} = parseGithubUrl(repositoryUrl);
1515
const github = getClient(githubToken, githubUrl, githubApiPathPrefix);
1616
const body = failComment ? template(failComment)({branch, errors}) : getFailComment(branch, errors);
17-
const srIssue = (await findSRIssues(github, failTitle, owner, repo))[0];
17+
const [srIssue] = await findSRIssues(github, failTitle, owner, repo);
1818

1919
if (srIssue) {
2020
logger.log('Found existing semantic-release issue #%d.', srIssue.number);

test/integration.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ test.beforeEach(t => {
2121
delete process.env.GH_PREFIX;
2222
delete process.env.GITHUB_PREFIX;
2323
// Clear npm cache to refresh the module state
24-
clearModule('../index');
25-
t.context.m = require('../index');
24+
clearModule('..');
25+
t.context.m = require('..');
2626
// Stub the logger
2727
t.context.log = stub();
2828
t.context.error = stub();

0 commit comments

Comments
 (0)