STYLE: Refactor code for improved readability and consistency

This commit is contained in:
Leon Bösche
2026-01-12 00:39:36 +01:00
parent 31ab3aad45
commit d9c8c1e1f3
6 changed files with 23 additions and 140 deletions

View File

@@ -225,7 +225,7 @@ func (c *WebDAVClient) Move(ctx context.Context, sourcePath, targetPath string)
sourceRel := strings.TrimLeft(sourcePath, "/")
targetRel := strings.TrimLeft(targetPath, "/")
u := c.basePrefix
if u == "/" || u == "" {
u = ""
@@ -272,4 +272,3 @@ func (c *WebDAVClient) Move(ctx context.Context, sourcePath, targetPath string)
body, _ := io.ReadAll(resp.Body)
return fmt.Errorf("webdav move failed: %d %s", resp.StatusCode, string(body))
}