Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Jul 19, 2022
1 parent 1af6b85 commit 1debe84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/services/http/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ impl Builder {
}

let key = if key.starts_with('/') {
key.to_string()
key[1..].to_string()
} else {
format!("/{key}")
key.to_string()
};

self.index.insert(key, ());
Expand All @@ -125,9 +125,9 @@ impl Builder {
pub fn extend_index<'a>(&mut self, it: impl Iterator<Item = &'a str>) -> &mut Self {
for k in it.filter(|v| !v.is_empty()) {
let k = if k.starts_with('/') {
k.to_string()
k[1..].to_string()
} else {
format!("/{k}")
k.to_string()
};

self.index.insert(k, ());
Expand Down

1 comment on commit 1debe84

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for opendal ready!

✅ Preview
https://opendal-o7ht3w4ca-databend.vercel.app

Built with commit 1debe84.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.