Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
assafvayner committed Oct 11, 2024
1 parent 4b92b11 commit 636c5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chunk_cache/src/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ impl DiskCache {
}

// validate stored data
let path = self.item_path(key, &cache_item)?;
let mut file = if let Ok(file) = File::open(&path) {
let path = self.item_path(key, cache_item)?;
let mut file = if let Ok(file) = File::open(path) {
file
} else {
self.remove_item(key, cache_item)?;
Expand Down

0 comments on commit 636c5b5

Please sign in to comment.