diff --git a/src/controllers/krate/publish.rs b/src/controllers/krate/publish.rs index fd124c9245e..81bbf5037f3 100644 --- a/src/controllers/krate/publish.rs +++ b/src/controllers/krate/publish.rs @@ -183,7 +183,7 @@ pub async fn publish(app: AppState, req: Parts, body: Body) -> AppResult) -> bool { - s.map_or(true, String::is_empty) + s.is_none_or(String::is_empty) } // It can have up to three elements per below conditions.