From 787776fe20daecc9fa7d3776f24f0e30548c184d Mon Sep 17 00:00:00 2001 From: Mikkel Denker Date: Tue, 19 Nov 2024 10:06:59 +0100 Subject: [PATCH] forgot to cleanup comments --- src/ts.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/ts.rs b/src/ts.rs index 55fe0dd..460d3b1 100644 --- a/src/ts.rs +++ b/src/ts.rs @@ -24,21 +24,10 @@ pub fn generate_ts(db: &dyn crate::Db, api: InputApi) -> String { .paths .paths .iter() - // .filter_map(|(path, item)| { - // if item.parameters.is_none() || item.parameters.as_ref().unwrap().is_empty() { - // dbg!(item.parameters.is_some()); - // return None; - // } - // Some((path, item)) - // }) .flat_map(|(path, item)| { let span = tracing::debug_span!("endpoint", path); let _enter = span.enter(); - // if item.parameters.is_none() || item.parameters.as_ref().unwrap().is_empty() { - // unreachable!() - // } - let gen_op = |method: &'static str, op: &Option| { op.as_ref() .map(|op| (method, operation(db, api, path.clone(), op)))