Skip to content

Commit 8125f87

Browse files
committed
Remove unused getApiFetch
1 parent 4292bd7 commit 8125f87

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

‎src/api-client.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,6 @@ export function makeProxyRequestOptions(
107107
};
108108
}
109109

110-
/**
111-
* Returns an implementation of `fetch` to use for API requests.
112-
* This will run API requests through the private registry authentication proxy
113-
* if it is configured.
114-
*
115-
* @param action The required Action state.
116-
*/
117-
export function getApiFetch(
118-
action: ActionState<["Logger", "Env"]>,
119-
): typeof undiciFetch {
120-
const dispatcher = getRegistryProxy(action);
121-
122-
const proxiedFetch = (req: RequestInfo, init?: RequestInit) => {
123-
return undiciFetch(req, { ...init, dispatcher });
124-
};
125-
return proxiedFetch;
126-
}
127-
128110
/** The type of GitHub API client we use. */
129111
export type ApiClient = Octokit & Api & { paginate: PaginateInterface };
130112

0 commit comments

Comments
 (0)