Skip to content

Commit 717dfdc

Browse files
committed
util.py: strip leading/trailing whitespace from output before printing
1 parent da2594c commit 717dfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-dataconnect/ci/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def fetch_pr_info(pr_number: int, github_repository: str) -> GitHubPrInfo:
3636
gh_args = tuple(gh_args)
3737
logging.info("Running command: %s", subprocess.list2cmdline(gh_args))
3838
output_str = subprocess.check_output(gh_args, encoding="utf8", errors="replace") # noqa: S603
39-
logging.info("%s", output_str)
39+
logging.info("%s", output_str.strip())
4040
output = json.loads(output_str)
4141
return GitHubPrInfo(
4242
title=output["title"],

0 commit comments

Comments
 (0)