Skip to content

Commit

Permalink
Merge pull request #77 from ajamaica/feature/fix-error-on-failure-net…
Browse files Browse the repository at this point in the history
…working-module

Fix error in networking module when falure
  • Loading branch information
ajamaica authored May 12, 2022
2 parents 20fee9e + 3a53e0f commit 2eb5f80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ class NetworkingRouter(
}
}.onFailure {
onComplete(Result.failure(it))
return
}
}.run {
}?:run {
onComplete(Result.failure(NetworkingError.invalidResponseNoData))
}
}
Expand Down

0 comments on commit 2eb5f80

Please sign in to comment.