Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsto committed Nov 15, 2024
1 parent a1337a3 commit c764e07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public final class LambdaRuntime<Handler>: @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"))
{
Expand All @@ -94,10 +94,10 @@ public final class LambdaRuntime<Handler>: @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
}
}
}

0 comments on commit c764e07

Please sign in to comment.