GCS: remove compat code

This commit is contained in:
Nicola Murino
2021-02-22 22:06:23 +01:00
parent 8cc2dfe5c2
commit 3e1b07324d
3 changed files with 6 additions and 11 deletions

View File

@@ -1561,7 +1561,7 @@ func downloadFile(remoteSourcePath string, localDestPath string, expectedSize in
func getWebDavClient(user dataprovider.User) *gowebdav.Client {
rootPath := fmt.Sprintf("http://%v/", webDavServerAddr)
pwd := defaultPassword
if len(user.Password) > 0 {
if user.Password != "" {
pwd = user.Password
}
client := gowebdav.NewClient(rootPath, user.Username, pwd)