Skip to content

Commit

Permalink
Fix format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Nov 24, 2024
1 parent 05ff4a9 commit 4e93229
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion vulture/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,6 @@ def visit_MatchClass(self, node):
self.used_names.add(kwd_attr)

def visit(self, node):

# Visit children nodes first to allow recursive reachability analysis.
self.generic_visit(node)

Expand Down
4 changes: 0 additions & 4 deletions vulture/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def _can_fall_through_statements_analysis(self, statements):
return True

def _handle_reachability_if(self, node):

has_else = bool(node.orelse)

if utils.condition_is_always_false(node.test):
Expand All @@ -82,7 +81,6 @@ def _handle_reachability_if(self, node):
)

elif utils.condition_is_always_true(node.test):

if_can_fall_through = self._can_fall_through_statements_analysis(
node.body
)
Expand Down Expand Up @@ -143,7 +141,6 @@ def _handle_reachability_if_expr(self, node):
)

def _handle_reachability_while(self, node):

if utils.condition_is_always_false(node.test):
self._report(
name="while",
Expand All @@ -167,7 +164,6 @@ def _handle_reachability_while(self, node):
self._can_fall_through_statements_analysis(node.body)

def _handle_reachability_try(self, node):

try_can_fall_through = self._can_fall_through_statements_analysis(
node.body
)
Expand Down

0 comments on commit 4e93229

Please sign in to comment.