Skip to content

Commit

Permalink
forgot to cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeldenker committed Nov 19, 2024
1 parent 5ef53a1 commit 787776f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<oapi::path::Operation>| {
op.as_ref()
.map(|op| (method, operation(db, api, path.clone(), op)))
Expand Down

0 comments on commit 787776f

Please sign in to comment.