Skip to content

Commit 7afa27b

Browse files
author
René Knop
committedMar 1, 2023
remove superfluous code
1 parent 11f6337 commit 7afa27b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎catalog/src/main/kotlin/org/example/Catalog.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fun main() {
1515
}
1616

1717
fun Application.module() {
18-
this@module.routing {
18+
routing {
1919

2020
post("/item") {
2121
println("Received message:\n${call.receiveText()}")

‎inventory/src/main/kotlin/org/example/Inventory.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data class Item (
3131
)
3232

3333
fun Application.module() {
34-
this@module.routing {
34+
routing {
3535

3636
post("/{item}") {
3737
HttpClient(CIO){

‎stock/src/main/kotlin/org/example/Stock.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fun main() {
1515
}
1616

1717
fun Application.module() {
18-
this@module.routing {
18+
routing {
1919

2020
post("/item") {
2121
println("Received message:\n${call.receiveText()}")

0 commit comments

Comments
 (0)
Please sign in to comment.