Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Nov 1, 2024
1 parent d0f9a0b commit c4adec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/ql/test/query-tests/unusedentities/unreachable.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pub fn cond() -> bool {
true
get_a_number() == 1
}

fn get_a_number() -> i32 {
42
maybe_get_a_number().unwrap_or(0)
}

fn maybe_get_a_number() -> Option<i32> {
None
std::env::args().nth(1).map(|s| s.parse::<i32>().unwrap())
}

// --- unreachable code --
Expand Down

0 comments on commit c4adec3

Please sign in to comment.