Skip to content

Commit

Permalink
add no cover to just-in-case lines
Browse files Browse the repository at this point in the history
  • Loading branch information
clavedeluna committed Oct 12, 2023
1 parent b22a4d4 commit 4142817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codemodder/codemods/utils_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def find_used_names_in_module(self):
names = []
scope = self.find_global_scope()
if scope is None:
return []
return [] # pragma: no cover

nodes = [x.node for x in scope.assignments]
for other_nodes in nodes:
Expand All @@ -93,7 +93,7 @@ def find_global_scope(self):
for scope in scopes:
if isinstance(scope, GlobalScope):
return scope
return None
return None # pragma: no cover

def find_single_assignment(
self,
Expand Down

0 comments on commit 4142817

Please sign in to comment.