From c764e075a7986bd63cae16a001678d011ca240cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Fri, 15 Nov 2024 13:34:31 +0100 Subject: [PATCH] fix format --- Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift b/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift index 02e526da..c058bf3d 100644 --- a/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift +++ b/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift @@ -76,8 +76,8 @@ public final class LambdaRuntime: @unchecked Sendable where Handler: St } else { -#if DEBUG - // we're not running on Lambda and we're compiled in DEBUG mode, + #if DEBUG + // we're not running on Lambda and we're compiled in DEBUG mode, // let's start a local server for testing try await Lambda.withLocalServer(invocationEndpoint: Lambda.env("LOCAL_LAMBDA_SERVER_INVOCATION_ENDPOINT")) { @@ -94,10 +94,10 @@ public final class LambdaRuntime: @unchecked Sendable where Handler: St ) } } -#else + #else // in release mode, we can't start a local server because the local server code is not compiled. throw LambdaRuntimeError(code: .missingLambdaRuntimeAPIEnvironmentVariable) -#endif + #endif } } }