From 8c1d413c123715c85c7bc39d0fc294a1c1541d34 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 20 Oct 2018 14:06:44 +0530 Subject: [PATCH] Reformat --- src/core/gh.ts | 22 ++++++++++------------ src/core/store/actions.ts | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/core/gh.ts b/src/core/gh.ts index b831655..9ccdc7d 100644 --- a/src/core/gh.ts +++ b/src/core/gh.ts @@ -299,18 +299,16 @@ class GithubDetectUnusedRepos { }); allRepoWithFlagTillStep4.forEach(tmp => { - defaultStore.dispatch( - { - type: ActionNames.AddRepoFilterStatus, - payload: { - repoName: tmp.repoName, - filterStep: FilterSteps.noCommits, - filterState: { - status: tmp.unused ? FilterStatus.pass : FilterStatus.fail - } - } - } - ) + defaultStore.dispatch({ + type: ActionNames.AddRepoFilterStatus, + payload: { + repoName: tmp.repoName, + filterStep: FilterSteps.noCommits, + filterState: { + status: tmp.unused ? FilterStatus.pass : FilterStatus.fail, + }, + }, + }); }); } } diff --git a/src/core/store/actions.ts b/src/core/store/actions.ts index e277371..bcbc99d 100644 --- a/src/core/store/actions.ts +++ b/src/core/store/actions.ts @@ -21,7 +21,7 @@ export interface InitRepoArgs extends Action { export interface AddRepoFilterStatusArgs extends Action { - payload: { + payload: { repoName: string; filterStep: FilterSteps; filterState: RepoFilterState[FilterSteps];