diff --git a/src/main.rs b/src/main.rs index 6c1f2e3..f882c0e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -145,7 +145,7 @@ fn controllers(config: &Config, filter: bool) -> std::io::Result> { fn service(config: Config) -> std::io::Result<()> { let mut controllers = controllers(&config, true)?; - if controllers.len() < 1 { + if controllers.is_empty() { return Err(not_found()); } let mut cache = std::collections::HashMap::new();