Skip to content

Commit 760fd0e

Browse files
committed
remove env check
1 parent 28da43a commit 760fd0e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/core/src/lambda/remoteDebugging/ldkClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,11 @@ export class LdkClient {
366366
}
367367

368368
if (check) {
369-
if ((await this.getFunctionDetail(config.FunctionArn)) === config) {
369+
const currentConfig = await this.getFunctionDetail(config.FunctionArn)
370+
if (
371+
currentConfig?.Timeout === config?.Timeout &&
372+
currentConfig?.Layers?.length === config?.Layers?.length
373+
) {
370374
// nothing to remove
371375
return true
372376
}

packages/core/src/lambda/remoteDebugging/ldkController.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ export async function revertExistingConfig(): Promise<boolean> {
112112

113113
if (
114114
currentConfig?.Timeout === savedConfig?.Timeout &&
115-
currentConfig?.Layers?.length === savedConfig?.Layers?.length &&
116-
currentConfig?.Environment === savedConfig?.Environment
115+
currentConfig?.Layers?.length === savedConfig?.Layers?.length
117116
) {
118117
// No changes needed, remove the snapshot
119118
void (await persistLambdaSnapshot(undefined))

0 commit comments

Comments
 (0)