chore: fix lint formatting
This commit is contained in:
@@ -22,7 +22,7 @@ describe("resolvePythonExecutablePath", () => {
|
||||
const shim = path.join(shimDir, "python3");
|
||||
await fs.writeFile(
|
||||
shim,
|
||||
`#!/bin/sh\nif [ \"$1\" = \"-c\" ]; then\n echo \"${realPython}\"\n exit 0\nfi\nexit 1\n`,
|
||||
`#!/bin/sh\nif [ "$1" = "-c" ]; then\n echo "${realPython}"\n exit 0\nfi\nexit 1\n`,
|
||||
"utf-8",
|
||||
);
|
||||
await fs.chmod(shim, 0o755);
|
||||
|
||||
@@ -58,7 +58,9 @@ function ensureGcloudOnPath(): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export async function resolvePythonExecutablePath(): Promise<string | undefined> {
|
||||
export async function resolvePythonExecutablePath(): Promise<
|
||||
string | undefined
|
||||
> {
|
||||
if (cachedPythonPath !== undefined) {
|
||||
return cachedPythonPath ?? undefined;
|
||||
}
|
||||
@@ -171,7 +173,14 @@ export async function ensureSubscription(
|
||||
pushEndpoint: string,
|
||||
) {
|
||||
const describe = await runGcloudCommand(
|
||||
["pubsub", "subscriptions", "describe", subscription, "--project", projectId],
|
||||
[
|
||||
"pubsub",
|
||||
"subscriptions",
|
||||
"describe",
|
||||
subscription,
|
||||
"--project",
|
||||
projectId,
|
||||
],
|
||||
30_000,
|
||||
);
|
||||
if (describe.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user