Skip to content

Commit fa12880

Browse files
committed
Format build metadata helper
1 parent 7457839 commit fa12880

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

policyengine_uk/build_metadata.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,11 @@ def _get_git_sha() -> str | None:
5151
if not (candidate / ".git").exists():
5252
continue
5353
try:
54-
return (
55-
subprocess.check_output(
56-
["git", "-C", str(candidate), "rev-parse", "HEAD"],
57-
stderr=subprocess.DEVNULL,
58-
text=True,
59-
)
60-
.strip()
61-
)
54+
return subprocess.check_output(
55+
["git", "-C", str(candidate), "rev-parse", "HEAD"],
56+
stderr=subprocess.DEVNULL,
57+
text=True,
58+
).strip()
6259
except Exception:
6360
return None
6461
return None

0 commit comments

Comments
 (0)