refactor: clean up function signatures in DriverSession and WDADriver for improved readability

This commit is contained in:
lilong.129
2025-06-26 14:43:39 +08:00
parent 3e4858db44
commit 1b48763e57
3 changed files with 4 additions and 7 deletions
+2 -4
View File
@@ -156,8 +156,7 @@ func (s *DriverSession) DELETE(urlStr string) (rawResp DriverRawResponse, err er
}
func (s *DriverSession) RequestWithRetry(method string, urlStr string, rawBody []byte) (
rawResp DriverRawResponse, err error,
) {
rawResp DriverRawResponse, err error) {
for count := 1; count <= s.maxRetry; count++ {
rawResp, err = s.Request(method, urlStr, rawBody)
if err == nil {
@@ -180,8 +179,7 @@ func (s *DriverSession) RequestWithRetry(method string, urlStr string, rawBody [
}
func (s *DriverSession) Request(method string, urlStr string, rawBody []byte) (
rawResp DriverRawResponse, err error,
) {
rawResp DriverRawResponse, err error) {
// build final URL
rawURL, err := s.buildURL(urlStr)
if err != nil {