We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e39add commit d1a5178Copy full SHA for d1a5178
docs/arc/04-cookbook/weather.md
@@ -48,7 +48,7 @@ function(
48
description = "Returns real-time weather information for any location",
49
params = types(string("location", "a city to obtain the weather for."))
50
) { (arg) ->
51
- val location = arg.toString() // Type conversion required, because arg can be any type depending on the params definition.
+ val location = arg?.toString() // Type conversion required, because arg can be any type depending on the params definition.
52
val locationSpecified = location != "unknown" && location?.isNotEmpty() == true
53
val locationToUse = if (locationSpecified) location else memory("weather_location")
54
if (locationToUse == null) {
0 commit comments