Skip to content

Commit 5faf0e9

Browse files
committed
fix: mistake in comment
1 parent 8858487 commit 5faf0e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/oxc_linter/src/rules/eslint/no_unreachable.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Rule for NoUnreachable {
4949

5050
// In our first path we first check if each block is definitely unreachable, If it is then
5151
// we set it as such, If we encounter an infinite loop we keep its end block since it can
52-
// block other reachable blocks from ever getting executed.
52+
// prevent other reachable blocks from ever getting executed.
5353
let _: Control<()> = depth_first_search(graph, Some(root.cfg_id()), |event| match event {
5454
DfsEvent::Finish(node, _) => {
5555
let bb = cfg.basic_block(node);
@@ -140,7 +140,6 @@ impl Rule for NoUnreachable {
140140
}
141141

142142
if unreachables[node.cfg_id().index()] {
143-
// if cfg.basic_block(node.cfg_id()).unreachable {
144143
ctx.diagnostic(no_unreachable_diagnostic(node.kind().span()));
145144
}
146145
}

0 commit comments

Comments
 (0)