diff --git a/src/gemini/client.rs b/src/gemini/client.rs index ba27a81..e7ef9ed 100644 --- a/src/gemini/client.rs +++ b/src/gemini/client.rs @@ -94,12 +94,11 @@ impl GeminiClient { let url = self.build_url(); // Check cache first - if let Some(ref mut c) = cache { - if let Some(bp) = base_path { - if let Some(cached) = c.check_cache(&filenames, bp) { - return Ok(cached); - } - } + if let Some(ref mut c) = cache + && let Some(bp) = base_path + && let Some(cached) = c.check_cache(&filenames, bp) + { + return Ok(cached); } let prompt = PromptBuilder::new(&filenames).build_categorization_prompt(&self.categories); diff --git a/tests/integration_online.rs b/tests/integration_online.rs index 19b3399..10bdd28 100644 --- a/tests/integration_online.rs +++ b/tests/integration_online.rs @@ -11,7 +11,7 @@ //! - File reading for deep inspection //! - Integration between components -use noentropy::files::{is_text_file, read_file_sample, FileBatch}; +use noentropy::files::{FileBatch, is_text_file, read_file_sample}; use noentropy::models::{FileCategory, OrganizationPlan}; use noentropy::storage::{Cache, UndoLog}; use std::collections::HashMap;