File tree 1 file changed +1
-2
lines changed
crates/oxc_linter/src/rules/eslint
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ impl Rule for NoUnreachable {
49
49
50
50
// In our first path we first check if each block is definitely unreachable, If it is then
51
51
// 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.
53
53
let _: Control < ( ) > = depth_first_search ( graph, Some ( root. cfg_id ( ) ) , |event| match event {
54
54
DfsEvent :: Finish ( node, _) => {
55
55
let bb = cfg. basic_block ( node) ;
@@ -140,7 +140,6 @@ impl Rule for NoUnreachable {
140
140
}
141
141
142
142
if unreachables[ node. cfg_id ( ) . index ( ) ] {
143
- // if cfg.basic_block(node.cfg_id()).unreachable {
144
143
ctx. diagnostic ( no_unreachable_diagnostic ( node. kind ( ) . span ( ) ) ) ;
145
144
}
146
145
}
You can’t perform that action at this time.
0 commit comments