File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343from typing import Any
4444
4545from tusk .drift .core .v1 import (
46- BranchInfo ,
4746 CliMessage ,
48- CoverageSnapshotResponse ,
49- FileCoverageData ,
5047 InstrumentationVersionMismatchAlert ,
5148 MessageType ,
5249 Runtime ,
Original file line number Diff line number Diff line change @@ -151,9 +151,7 @@ def _is_user_file(filename: str) -> bool:
151151 # Resolve symlinks for consistent path comparison
152152 resolved = os .path .realpath (filename )
153153 # Use trailing separator to avoid prefix collisions (/app matching /application)
154- if _source_root and not (resolved .startswith (_source_root + os .sep ) or resolved == _source_root ):
155- return False
156- return True
154+ return not _source_root or resolved .startswith (_source_root + os .sep ) or resolved == _source_root
157155
158156
159157def _get_branch_data (data , filename : str ) -> dict :
You can’t perform that action at this time.
0 commit comments