Skip to content

Commit

Permalink
Revert "Trigger diff coverage failure"
Browse files Browse the repository at this point in the history
This reverts commit aae39d9.
  • Loading branch information
torymur committed Oct 30, 2024
1 parent aae39d9 commit 66a3dce
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/json_schema/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,3 @@ pub fn get_num_items_pattern(min_items: Option<u64>, max_items: Option<u64>) ->
}
}
}

#[allow(dead_code)]
pub fn some_new_untested_function(
min_items: Option<u64>,
max_items: Option<u64>,
) -> Option<String> {
let min_items = min_items.unwrap_or(0);

match max_items {
None => Some(format!("{{{},}}", min_items.saturating_sub(1))),
Some(max_items) => {
if max_items < 1 {
None
} else {
Some(format!(
"{{{},{}}}",
min_items.saturating_sub(1),
max_items.saturating_sub(1)
))
}
}
}
}

0 comments on commit 66a3dce

Please sign in to comment.