Skip to content

Commit aaf2916

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6363439 commit aaf2916

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scripts/pr_file_map.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def git_root() -> Path | None:
101101
def script_display_path() -> Path:
102102
"""This script's path relative to the git root (falls back to absolute)."""
103103
script_path = Path(__file__).resolve()
104-
root = git_root()
105-
if root is not None:
104+
if (root := git_root()) is not None:
106105
try:
107106
return script_path.relative_to(root.resolve())
108107
except ValueError:

0 commit comments

Comments
 (0)