Merge pull request #127 from dmunozv04/deepsource-autofix-75d7989d

refactor: replace range(len(...)) with enumerate(...)
This commit is contained in:
David
2024-01-14 15:19:22 +01:00
committed by GitHub

View File

@@ -129,8 +129,8 @@ def main(config, debug: bool) -> None:
print("No channels found") print("No channels found")
continue continue
for i in range(len(results)): for i, item in enumerate(results):
print(f"{i}: {results[i][1]} - Subs: {results[i][2]}") print(f"{i}: {item[1]} - Subs: {item[2]}")
print("5: Enter a custom channel ID") print("5: Enter a custom channel ID")
print("6: Go back") print("6: Go back")