Has anyone experienced an issue where ``` if(some...
# announcements
j
Has anyone experienced an issue where
Copy code
if(someTrueCondition)
    return “blah”
return “hello world”
would still return
hello world
? I usually fix it by changing the syntax to
Copy code
var foo:String? = null
if(someTrueCondition)
    foo = “blah”
 else
    foo = “hello world”
 return foo
It’s definitely not a consistent “bug" so I’m not quite sure why it only sometimes happens but it’s almost as if the
else
block is required.