Skip to content

Commit 5bd062e

Browse files
fix lint
1 parent e1624cf commit 5bd062e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/exceptionite/StackTrace.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ def __init__(self, index, frame_summary, variables={}, offset=5, shorten=False):
2525

2626
if index != -1:
2727
self.is_vendor = True
28-
if marker == "src/masonite/":
29-
self.relative_file = "~/" + rel_path[index + len("src/") :] # noqa: E203
30-
else:
31-
self.relative_file = "~/" + rel_path[index + len(marker) :] # noqa: E203
28+
end_index = len("src/") if marker == "src/masonite/" else len(marker)
29+
self.relative_file = "~/" + rel_path[index + end_index :] # noqa: E203
3230
else:
3331
self.relative_file = rel_path
3432

0 commit comments

Comments
 (0)