Skip to content

Commit

Permalink
Missed early return
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed Nov 18, 2024
1 parent 9ae1b89 commit 077d267
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function normalize(value: any, cfnType?: string, pulumiProvider?: PulumiP
if (!value) return value;

if (value instanceof Promise) {
pulumi.output(value).apply(v => normalize(v, cfnType, pulumiProvider));
return pulumi.output(value).apply(v => normalize(v, cfnType, pulumiProvider));
}

if (pulumi.Output.isInstance(value)) {
Expand Down
4 changes: 2 additions & 2 deletions src/pulumi-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,11 @@ export function normalizeObject(key: string[], value: any, cfnType?: string, pul
if (!value) return value;

if (value instanceof Promise) {
pulumi.output(value).apply(v => normalizeObject(key, v, cfnType, pulumiProvider));
return pulumi.output(value).apply(v => normalizeObject(key, v, cfnType, pulumiProvider));
}

if (pulumi.Output.isInstance(value)) {
return value.apply(v => normalizeObject(key, v, cfnType, pulumiProvider));
return value.apply(v => normalizeObject(key, v, cfnType, pulumiProvider)});

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / Build and Test

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / Build and Test

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 1)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 1)

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 0)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 0)

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 2)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / integration-test / acceptance-tests (3, 2)

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 0)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 0)

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 2)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 2)

Declaration or statement expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 1)

',' expected.

Check failure on line 293 in src/pulumi-metadata.ts

View workflow job for this annotation

GitHub Actions / acceptance-test / acceptance-tests (3, 1)

Declaration or statement expected.
}

if (Array.isArray(value)) {
Expand Down

0 comments on commit 077d267

Please sign in to comment.