Skip to content

Commit 7e1915a

Browse files
committed
nit: remove unused imports
1 parent 4345cb9 commit 7e1915a

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/v1/cloud-functions.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import {
4343
ManifestRequiredAPI,
4444
} from "../runtime/manifest";
4545
import { ResetValue } from "../common/options";
46-
import { JsonSecretParam, SecretParam, SupportedSecretParam } from "../params/types";
46+
import { SupportedSecretParam } from "../params/types";
4747
import { withInit } from "../common/onInit";
4848

4949
export { Change } from "../common/change";
@@ -640,8 +640,7 @@ export function optionsToEndpoint(options: DeploymentOptions): ManifestEndpoint
640640
"secrets",
641641
(secrets: SupportedSecretParam[]) =>
642642
secrets.map((secret) => ({
643-
key:
644-
typeof secret === "string" ? secret : secret.name
643+
key: typeof secret === "string" ? secret : secret.name,
645644
}))
646645
);
647646
if (options?.vpcConnector !== undefined) {

src/v1/function-builder.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import * as express from "express";
2424

2525
import { ResetValue } from "../common/options";
26-
import { Expression, JsonSecretParam, SecretParam } from "../params/types";
26+
import { Expression } from "../params/types";
2727
import { EventContext } from "./cloud-functions";
2828
import {
2929
DeploymentOptions,
@@ -200,10 +200,7 @@ function assertRuntimeOptionsValid(runtimeOptions: RuntimeOptions): boolean {
200200

201201
if (runtimeOptions.secrets !== undefined) {
202202
const invalidSecrets = runtimeOptions.secrets.filter(
203-
(s) =>
204-
!/^[A-Za-z\d\-_]+$/.test(
205-
typeof s === "string" ? s : s.name
206-
)
203+
(s) => !/^[A-Za-z\d\-_]+$/.test(typeof s === "string" ? s : s.name)
207204
);
208205
if (invalidSecrets.length > 0) {
209206
throw new Error(

src/v2/options.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { RESET_VALUE, ResetValue } from "../common/options";
3535
import { ManifestEndpoint } from "../runtime/manifest";
3636
import { TriggerAnnotation } from "./core";
3737
import { declaredParams, Expression } from "../params";
38-
import { JsonSecretParam, ParamSpec, SecretParam, SupportedSecretParam } from "../params/types";
38+
import { ParamSpec, SupportedSecretParam } from "../params/types";
3939
import { HttpsOptions } from "./providers/https";
4040
import * as logger from "../logger";
4141

@@ -398,8 +398,7 @@ export function optionsToEndpoint(
398398
"secrets",
399399
(secrets: SupportedSecretParam[]) =>
400400
secrets.map((secret) => ({
401-
key:
402-
typeof secret === "string" ? secret : secret.name
401+
key: typeof secret === "string" ? secret : secret.name,
403402
}))
404403
);
405404

0 commit comments

Comments
 (0)