Skip to content

Commit 197dfd5

Browse files
committed
Remove implicit account load during API configuration
1 parent a2eedb1 commit 197dfd5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/wrangler/src/cloudchamber/common.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export async function promiseSpinner<T>(
179179

180180
export async function fillOpenAPIConfiguration(
181181
config: Config,
182-
json: boolean,
182+
_json: boolean,
183183
scope: typeof containersScope | typeof cloudchamberScope
184184
) {
185185
const headers: Record<string, string> =
@@ -201,16 +201,6 @@ export async function fillOpenAPIConfiguration(
201201
}
202202

203203
OpenAPI.HEADERS = headers;
204-
const [, err] = await wrap(loadAccountSpinner({ json }));
205-
206-
if (err) {
207-
let message = err.message;
208-
if (json && err instanceof ApiError) {
209-
message = JSON.stringify(err);
210-
}
211-
212-
throw new UserError("Loading account failed: " + message);
213-
}
214204
}
215205

216206
export function interactWithUser(config: { json?: boolean }): boolean {

0 commit comments

Comments
 (0)