Fix empty string comparison issues in the codebase (#16686)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
200a56fa5a
Коммит
94c24eea20
@@ -67,7 +67,7 @@ func testDoUploadFileRequest(t testing.TB, c *model.Client4, url string, blob []
|
||||
req.ContentLength = contentLength
|
||||
}
|
||||
req.Header.Set("Content-Type", contentType)
|
||||
if len(c.AuthToken) > 0 {
|
||||
if c.AuthToken != "" {
|
||||
req.Header.Set(model.HEADER_AUTH, c.AuthType+" "+c.AuthToken)
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user