Skip to content

Commit 1eace8e

Browse files
Ndpntclementbiron
andauthored
Update scripts/reporter/duplicate/index.js
Co-authored-by: Clément Biron <[email protected]>
1 parent 24a8c01 commit 1eace8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/reporter/duplicate/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { Octokit } from 'octokit';
55
async function removeDuplicateIssues() {
66
try {
77
const repository = config.get('@opentermsarchive/engine.reporter.githubIssues.repositories.declarations');
8-
const [ owner, repo ] = repository.split('/');
9-
108
if (!repository) {
119
throw new Error('Repository configuration is not set');
1210
}
11+
12+
const [ owner, repo ] = repository.split('/');
1313

1414
const octokit = new Octokit({ auth: process.env.OTA_ENGINE_GITHUB_TOKEN });
1515

0 commit comments

Comments
 (0)