Skip to content

Commit 389b6b0

Browse files
committed
Remove obsolete code
1 parent b205e3f commit 389b6b0

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

src/githubHelper.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,7 @@ export class GithubHelper {
121121
state: 'all',
122122
});
123123

124-
// extract the milestone number and title and put into a new array
125-
return result.data.map(x => ({
126-
number: x.number,
127-
title: x.title,
128-
}));
124+
return result.data.map(x => ({ number: x.number, title: x.title }));
129125
} catch (err) {
130126
console.error('Could not access all GitHub milestones');
131127
console.error(err);

src/index.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ if (settings.s3) {
2525
});
2626
}
2727

28-
//let settings = null;
29-
try {
30-
//settings = require('../settings.js');
31-
} catch (e) {
32-
if (e.code === 'MODULE_NOT_FOUND') {
33-
console.log('\n\nPlease copy the sample_settings.js to settings.js.');
34-
} else {
35-
console.log(e);
36-
}
37-
38-
process.exit(1);
39-
}
40-
4128
// Ensure that the GitLab token has been set in settings.js
4229
if (
4330
!settings.gitlab.token ||

0 commit comments

Comments
 (0)