Skip to content

Commit

Permalink
chore: type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog committed Feb 23, 2024
1 parent 6b56310 commit 1a592dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ async function fastFailMetadataRequest<T>(
): Promise<GaxiosResponse> {
const secondaryOptions = {
...options,
url: options.url!.replace(getBaseUrl(), getBaseUrl(SECONDARY_HOST_ADDRESS)),
url: options.url
?.toString()
.replace(getBaseUrl(), getBaseUrl(SECONDARY_HOST_ADDRESS)),
};
// We race a connection between DNS/IP to metadata server. There are a couple
// reasons for this:
Expand Down

0 comments on commit 1a592dc

Please sign in to comment.