Skip to content

Commit

Permalink
Scala syntax update
Browse files Browse the repository at this point in the history
  • Loading branch information
mudspot committed Apr 25, 2022
1 parent d306bca commit 85ed949
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ class AwsLambdaExecutor @Inject() (
)(implicit jsonFormatter: Format[T]): Future[T] =
if (mock) Future.successful(null.asInstanceOf[T])
else {
val invokeResponse: InvokeResponse = lambdaClient.invoke{request}.get
invokeResponse match {
lambdaClient.invoke{request}.get match {
case r: InvokeResponse if r.functionError() == null =>
logger.debug(s"""Function responded with:
| Status: ${r.statusCode()}
Expand Down

0 comments on commit 85ed949

Please sign in to comment.