You've missed a `return` in case `response.body()`...
# coroutines
c
You've missed a
return
in case
response.body()
is null, i.e. the
let
path is not executed
h
In this case what will be the return type?
c
Won't change, you can just add
return Result.Error(IOException("Body is null"))
Although I think you actually can't use
Result
as a return type due to some special treatment in the compiler.
h
Solved the error after adding return statement, thanks alot