Skip to content

Commit 0f3b227

Browse files
committed
refactor: don't need this aux variable anymore
1 parent 3f1089c commit 0f3b227

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

coverage/parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ def missing_arc_description(self, start: TLineNo, end: TLineNo) -> str:
352352
self._analyze_ast()
353353
assert self._missing_arc_fragments is not None
354354

355-
actual_start = start
356355
fragment_pairs = self._missing_arc_fragments.get((start, end), [(None, None)])
357356

358357
msgs = []
@@ -364,9 +363,9 @@ def missing_arc_description(self, start: TLineNo, end: TLineNo) -> str:
364363
emsg = "didn't jump to line {lineno}"
365364
emsg = emsg.format(lineno=end)
366365

367-
msg = f"line {actual_start} {emsg}"
366+
msg = f"line {start} {emsg}"
368367
if smsg is not None:
369-
msg += f" because {smsg.format(lineno=actual_start)}"
368+
msg += f" because {smsg.format(lineno=start)}"
370369

371370
msgs.append(msg)
372371

0 commit comments

Comments
 (0)