fixed samples: wrong ?? operator to supported elvis ?:
This commit is contained in:
1 parent
338dc00573
commit
8b94432f66
3 files changed
+37
-2
No files matched your search
@@ -62,7 +62,7 @@ fun HomePage() {
|
||||
var config = null
|
||||
config ?= { timeout: 30 } // Assign only if null
|
||||
|
||||
val timeout = config?.timeout ?? 60
|
||||
val timeout = config?.timeout ?: 60
|
||||
println("Timeout is: " + timeout)
|
||||
""".trimIndent(),
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user