Skip to content

Commit

Permalink
make return type explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-stainless committed Sep 25, 2023
1 parent 03f19bf commit d17397a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {HttpProxyAgent} from 'http-proxy-agent';
import {PullRequestOverflowHandler} from './util/pull-request-overflow-handler';
import {retry} from '@octokit/plugin-retry';
import {throttling} from '@octokit/plugin-throttling';
import {Agent} from 'http';

// Extract some types from the `request` package.
type RequestBuilderType = typeof request;
Expand Down Expand Up @@ -266,7 +267,10 @@ export class GitHub {
setupLogger(this.logger);
}

static createDefaultAgent(baseUrl: string, defaultProxy?: ProxyOption) {
static createDefaultAgent(
baseUrl: string,
defaultProxy?: ProxyOption
): Agent | undefined {
if (!defaultProxy) {
return undefined;
}
Expand Down

0 comments on commit d17397a

Please sign in to comment.