aboutsummaryrefslogtreecommitdiff
path: root/aero-dav/src/decoder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'aero-dav/src/decoder.rs')
-rw-r--r--aero-dav/src/decoder.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/aero-dav/src/decoder.rs b/aero-dav/src/decoder.rs
index 766d19c..de04dd4 100644
--- a/aero-dav/src/decoder.rs
+++ b/aero-dav/src/decoder.rs
@@ -551,7 +551,9 @@ impl QRead<LockScope> for LockScope {
if xml.maybe_open(DAV_URN, "exclusive").await?.is_some() {
xml.close().await?;
break LockScope::Exclusive
- } else if xml.maybe_open(DAV_URN, "shared").await?.is_some() {
+ }
+
+ if xml.maybe_open(DAV_URN, "shared").await?.is_some() {
xml.close().await?;
break LockScope::Shared
}