Remove the duplicated scheduleFn initialization in GitHubEntityProvider

Signed-off-by: Mengnan Gong <namco1992@gmail.com>
This commit is contained in:
Mengnan Gong
2022-09-19 20:09:07 +08:00
parent 2c86897da0
commit 91e2abbd46
2 changed files with 5 additions and 1 deletions
@@ -98,7 +98,6 @@ export class GitHubEntityProvider implements EntityProvider {
this.scheduleFn = this.createScheduleFn(schedule);
this.githubCredentialsProvider =
SingleInstanceGithubCredentialsProvider.create(integration.config);
this.scheduleFn = this.createScheduleFn(schedule);
}
/** {@inheritdoc @backstage/plugin-catalog-backend#EntityProvider.getProviderName} */