Skip to content

Commit 4929bcd

Browse files
committed
Fix formatting
1 parent 5f2f8e5 commit 4929bcd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/update_multitool_binaries.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ def run(lockfile_path):
3737
data = json.load(f)
3838

3939
for tool in [tool for tool in data if tool != "$schema"]:
40-
version = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])[
41-
1
42-
]
43-
match = re.search(
44-
f"github.com/(.*?)/releases", data[tool]["binaries"][0]["url"]
45-
)
40+
version = re.search(f"download/(.*?)/{tool}", data[tool]["binaries"][0]["url"])[1]
41+
match = re.search("github.com/(.*?)/releases", data[tool]["binaries"][0]["url"])
4642
if match:
4743
user_repo = match[1]
4844
else:

0 commit comments

Comments
 (0)