Skip to content

Commit

Permalink
reckless: remove extraneous web request
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev authored and ShahanaFarooqui committed Apr 15, 2023
1 parent 6163138 commit f5a1323
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tools/reckless
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,6 @@ def _install_plugin(src: InstInfo) -> bool:
print('error: reckless install directory unavailable')
sys.exit(2)

# FIXME: This request seems rather pointless
req = urlopen(src.repo, timeout=10)
if not req.status == 200:
print('plugin source repository unavailable')
sys.exit(1)
# Use a unique directory for each cloned repo.
clone_path = 'reckless-{}'.format(str(hash(os.times()))[-9:])
clone_path = Path(tempfile.gettempdir()) / clone_path
Expand Down

0 comments on commit f5a1323

Please sign in to comment.