Skip to content

Commit

Permalink
Incorporate PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwinch committed Jan 21, 2021
1 parent e186ea8 commit 1a6477e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/constructs/lambda/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ export class GuLambdaFunction extends Function {
constructor(scope: GuStack, id: string, props: GuFunctionProps) {
const bucket = Bucket.fromBucketName(scope, `${id}-bucket`, props.code.bucket);
const code = Code.fromBucket(bucket, props.code.key);
const { memorySize, timeout, ...rest } = props;
super(scope, id, {
...rest,
memorySize: defaultMemorySize(props.runtime, memorySize),
timeout: props.timeout ? props.timeout : Duration.seconds(30),
...props,
memorySize: defaultMemorySize(props.runtime, props.memorySize),
timeout: props.timeout ?? Duration.seconds(30),
code,
});

Expand Down

0 comments on commit 1a6477e

Please sign in to comment.