Skip to content

Commit aa3fabe

Browse files
committed
simplify example
1 parent e33a43d commit aa3fabe

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ExampleLambda0.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package org.encalmo.lambda.example
22

3-
import org.encalmo.lambda.LambdaContext
4-
import org.encalmo.lambda.SimpleLambdaRuntime
5-
3+
import org.encalmo.lambda.{LambdaContext, SimpleLambdaRuntime}
64
import scala.annotation.static
75

86
object ExampleLambda0 {

ExampleLambda1.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ExampleLambda1 extends LambdaRuntime {
2424

2525
override def initialize(using environment: LambdaEnvironment): Config = {
2626
val greeting = environment
27-
.maybeGetProperty("EXAMPLE_LAMBDA_GREETING")
27+
.maybeGetProperty("LAMBDA_GREETING")
2828
.getOrElse("Hello <input>!")
2929

3030
environment.info(

ExampleLambda1.test.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class ExampleLambda1Spec extends munit.FunSuite {
77
test("ExampleLambda1 should respond with a message containing a configured greeting") {
88

99
val environmentConfiguration =
10-
Map("EXAMPLE_LAMBDA_GREETING" -> "Welcome to the brave <input> world!")
10+
Map("LAMBDA_GREETING" -> "Welcome to the brave <input> world!")
1111

1212
val input = "Scala 3"
1313

0 commit comments

Comments
 (0)