fix: remove unnecessary status code check in Request method

This commit is contained in:
lilong.129
2025-07-17 00:18:57 +08:00
parent b507ca893f
commit 419a245b81
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0-250716 v5.0.0-250717
-3
View File
@@ -308,9 +308,6 @@ func (s *DriverSession) Request(method string, urlStr string, rawBody []byte, op
} }
if err = rawResp.CheckErr(); err != nil { if err = rawResp.CheckErr(); err != nil {
if resp.StatusCode == http.StatusOK {
return rawResp, nil
}
return nil, err return nil, err
} }