Merge pull request #13726 from namco1992/fix-github-entity-provider

Remove the duplicated scheduleFn initialization in GitHubEntityProvider
This commit is contained in:
Fredrik Adelöw
2022-09-19 15:03:48 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-github': patch
---
Remove the duplicated `scheduleFn` initialization in `GitHubEntityProvider`.
@@ -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} */