Skip to content

Commit 139eb47

Browse files
committed
remove not used code
1 parent 176ac93 commit 139eb47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/inline/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ def inlinetest_namespace() -> Dict[str, Any]:
141141
class InlineTest:
142142
def __init__(self):
143143
self.assume_stmts = []
144-
self.assume_node: ast.If = None
145144
self.check_stmts = []
146145
self.given_stmts = []
147146
self.previous_stmts = []
@@ -180,7 +179,7 @@ def to_test(self):
180179
return "\n".join(ExtractInlineTest.node_to_source_code(assume_node))
181180

182181
else:
183-
if self.assume_stmts == []:
182+
if self.assume_stmts is None or self.assume_stmts == []:
184183
return "\n".join(
185184
[ExtractInlineTest.node_to_source_code(n) for n in self.given_stmts]
186185
+ [

0 commit comments

Comments
 (0)