Skip to content

Commit 48ff63f

Browse files
committed
Additional type fix
1 parent ba410b7 commit 48ff63f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/runfiles/runfiles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def lookup(self, source_repo: Optional[str], target_apparent: str) -> Optional[s
112112
Returns:
113113
target_canonical repository name, or None if no mapping exists
114114
"""
115+
if source_repo is None:
116+
return None
117+
115118
key = (source_repo, target_apparent)
116119

117120
# Try exact mapping first

0 commit comments

Comments
 (0)