Skip to content

Commit

Permalink
chore: removed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Oct 9, 2024
1 parent 6b3ce9d commit c748712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/octokit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ type OctokitInstanceType = InstanceType<typeof customOctokit> & paginateGraphQLI

let octokitInstance: OctokitInstanceType | null = null;

function getOctokitInstance() {
function getOctokitInstance(): OctokitInstanceType {
if (!octokitInstance) {
octokitInstance = new customOctokit({
auth: program.authToken,
retry: {
retries: configuration.dataCollection.maxAttempts,
retryAfterBaseValue: configuration.dataCollection.delayMs,
},
}) as OctokitInstanceType;
});
}
return octokitInstance as OctokitInstanceType;
return octokitInstance;
}

export { getOctokitInstance };

0 comments on commit c748712

Please sign in to comment.