Skip to content

Commit

Permalink
refactor: 💡 review amends
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Oct 31, 2024
1 parent 8b3dc89 commit 6bdc49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/functions/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const createAction: SdkGuardedFunction<CreateFunctionArgs> = async ({
const { name, siteId } = args;
const functionName = await getFunctionNameOrPrompt({ name });

if (!siteId || !await isSiteIdValid({ siteId: siteId as string, sdk })) {
if (!siteId || !await isSiteIdValid({ siteId, sdk })) {
output.error(t(`siteNotFound`));
return;
}
Expand All @@ -27,7 +27,7 @@ const createAction: SdkGuardedFunction<CreateFunctionArgs> = async ({
.functions()
.create({
name: functionName,
siteId,
siteId: siteId as string,
});

output.printNewLine();
Expand Down

0 comments on commit 6bdc49b

Please sign in to comment.