From 0efb0f57711e275a51a8b46efc1df37a7c16bd2a Mon Sep 17 00:00:00 2001 From: blek Date: Fri, 27 Oct 2023 00:28:33 +1000 Subject: [PATCH] fix the janitord bug (#3) --- janitor/src/clean.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/janitor/src/clean.rs b/janitor/src/clean.rs index 69772f2..b6acb70 100644 --- a/janitor/src/clean.rs +++ b/janitor/src/clean.rs @@ -43,7 +43,7 @@ async fn check_key(key: String, mut client: redis::Client) -> bool { } pub async fn check_file(file: String, keys: Vec, prefix: String) -> Result { - if ! keys.iter().find(|x| x.chars().skip(prefix.len() + 4 + 2).collect::() == file).is_none() { + if keys.iter().find(|x| x.chars().skip(prefix.len() + 4 + 2).collect::() == file).is_none() { #[cfg(debug_assertions)] { log::debug!("File {file} is marked for deletion because it exists in the filesystem, but is not in the database"); }