Skip to content

Commit

Permalink
fix(services/webdav): Fix possible error with value loosing from conf…
Browse files Browse the repository at this point in the history
…ig (#4262)

Fix possible error with value loosing from config
  • Loading branch information
AJIOB committed Feb 23, 2024
1 parent f367b8b commit ab52b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/services/webdav/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ impl Builder for WebdavBuilder {
}
};

let root = normalize_root(&self.config.root.take().unwrap_or_default());
let root = normalize_root(&self.config.root.clone().unwrap_or_default());
debug!("backend use root {}", root);

let client = if let Some(client) = self.http_client.take() {
Expand Down

0 comments on commit ab52b43

Please sign in to comment.