Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Commit c6b5feb

Browse files
committed
fix lint warning
1 parent e9b5571 commit c6b5feb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/repository_menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async function show_repo_preview(config: ConfigType) {
196196
spinner.stop()
197197
console.log(md_term + '\n')
198198
} catch (err) {
199-
if (/remote: fatal: pathspec 'README\.md' did not match any files/.test((<any>err).message || ''))
199+
if (/remote: fatal: pathspec 'README\.md' did not match any files/.test(err?.message || ''))
200200
spinner.fail(chalk.red("Error: 'README.md' file was not found on the repository"))
201201
else spinner.fail(chalk.red(err))
202202
}

src/timeline_menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function fetch_timelines(config: ConfigType) {
3535
const spinner = spin().start(chalk.green('Fetch timelines...'))
3636

3737
const timelineApi = new TimelineApi()
38-
let errorList : string[] = []
38+
const errorList : string[] = []
3939

4040
config.timelines = []
4141
await Promise.all(

0 commit comments

Comments
 (0)