minor refactoring

This commit is contained in:
Lennart
2024-09-29 15:09:58 +02:00
parent 3469252cd3
commit 48abbb7ac3
2 changed files with 2 additions and 4 deletions

View File

@@ -80,9 +80,8 @@ impl<R: Resource> HandlePropfind for R {
&self,
prefix: &str,
path: String,
props: Vec<&str>,
mut props: Vec<&str>,
) -> Result<ResponseElement<PropstatWrapper<R::Prop>>, R::Error> {
let mut props = props;
if props.contains(&"propname") {
if props.len() != 1 {
// propname MUST be the only queried prop per spec