Skip to content

Commit

Permalink
default to root for empty path in azure store (#603)
Browse files Browse the repository at this point in the history
* default to root for empty path in azure store

* clippy
  • Loading branch information
roeap authored May 12, 2022
1 parent 359c2fa commit 996c48c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rust/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,7 @@ pub fn parse_uri<'a>(path: &'a str) -> Result<Uri<'a>, UriError> {
return Err(UriError::MissingObjectFileSystem);
}
};
let path = match path_parts.next() {
Some(x) => x,
None => {
return Err(UriError::MissingObjectPath);
}
};
let path = path_parts.next().unwrap_or("/");

Ok(Uri::AdlsGen2Object(azure::AdlsGen2Object { account_name, file_system, path }))
} else {
Expand Down

0 comments on commit 996c48c

Please sign in to comment.