Update packages/app/src/apis.ts
Shorten the code Co-authored-by: Ivan Shmidt <bahoc47@gmail.com>
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user