From eda7f30da27090907c11dfdacdec75229795ba1a Mon Sep 17 00:00:00 2001 From: Nikita Dudnik Date: Thu, 16 Jul 2020 11:03:58 +0200 Subject: [PATCH] Update packages/app/src/apis.ts Shorten the code Co-authored-by: Ivan Shmidt --- packages/app/src/apis.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/app/src/apis.ts b/packages/app/src/apis.ts index 6d8e1bd3c3..b72a5f1c6d 100644 --- a/packages/app/src/apis.ts +++ b/packages/app/src/apis.ts @@ -85,8 +85,7 @@ export const apis = (config: ConfigApi) => { ); const octokit = new Octokit(); - const client = new GithubActionsClient({ api: octokit }); - builder.add(githubActionsApiRef, client); + builder.add(githubActionsApiRef, new GithubActionsClient({ api: octokit })); builder.add(featureFlagsApiRef, new FeatureFlags()); builder.add(lighthouseApiRef, new LighthouseRestApi('http://localhost:3003'));