Skip to content

Commit

Permalink
remove leading slash if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Sep 12, 2023
1 parent cd48113 commit e3dfdc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion signer/src/kvv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ impl KVVStore for FsKVVStore {
.list(prefix)
.map_err(|_| Error::Internal("could not list".to_string()))?;
let mut result = Vec::new();
for item in items {
for mut item in items {
if item.starts_with("/") {
item.remove(0);
}
let key = format!("{}/{}", prefix, item);
log::info!("LIST RES {:?}", key);
let vv = self
Expand Down

0 comments on commit e3dfdc3

Please sign in to comment.