Skip to content

Commit 7ee7e1a

Browse files
committed
Fix detection of no secrets
1 parent 51a5f05 commit 7ee7e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export function onCallGenkit<A extends GenkitAction>(
567567
opts = {};
568568
action = optsOrAction as A;
569569
}
570-
if (opts.secrets?.length === 0) {
570+
if (!opts.secrets?.length) {
571571
logger.debug(
572572
`Genkit function for ${action.__action.name} is not bound to any secret. This may mean that you are not storing API keys as a secret or that you are not binding your secret to this function. See https://firebase.google.com/docs/functions/config-env?gen=2nd#secret_parameters for more information.`
573573
);

0 commit comments

Comments
 (0)