Skip to content

Commit

Permalink
Fix for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
stuwilkins committed Feb 9, 2025
1 parent ddea6ba commit 57d01e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/modules/github_vars_facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,17 @@ def _get_json(self, url):
def _get_branch_sha(self, branch):
# Get from here
j = self._get_json(
f"https://api.github.com/repos/{self._owner}/{self._repo}/branches/{branch}"
f"https://api.github.com/repos/{self._owner}/"
f"{self._repo}/branches/{branch}"
)
head_tree_sha = j["commit"]["commit"]["tree"]["sha"]
return head_tree_sha

def _get_tree(self, sha, path=None, recursive=None):
_recursive = bool(recursive)
j = self._get_json(
f"https://api.github.com/repos/{self._owner}/{self._repo}/git/trees/{sha}?recursive=f{_recursive}"
f"https://api.github.com/repos/{self._owner}/{self._repo}/"
f"git/trees/{sha}?recursive=f{_recursive}"
)

if path is not None:
Expand Down

0 comments on commit 57d01e2

Please sign in to comment.