Closed flycash closed 11 months ago
Attention: 3 lines
in your changes are missing coverage. Please review.
Comparison is base (
14dba09
) 95.77% compared to head (1932a13
) 95.64%.
Files | Patch % | Lines |
---|---|---|
net/httpx/response.go | 50.00% | 2 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
在使用原生的 http 包的时候,充斥着大量的错误处理。这里我将整个过程简化了,只有在发起最终调用的时候,才会返回 error。
所谓的最终调用,就是指真正尝试解析 response 的时候,才会返回 error。在这之前,可以保持丝滑的链式调用。