Skip to content

Commit

Permalink
chore: simplify if statement
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Heidler <dominik@heidler.eu>
  • Loading branch information
nobkd and asdil12 authored Oct 10, 2023
1 parent aa43590 commit ef1eb8d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bin/opi
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,11 @@ if __name__ == '__main__':
# Iterate over queries, copy list as modifying it from within the loop
for query in list(args.query):
# Try to find a matching plugin for the query (and run it); runs just first query if not in multi_package mode
success = pm.run(query)

# After plugin successfully ran, remove from queries to not try again in repo search
if success:
if pm.run(query):
# After plugin successfully ran, remove from queries to not try again in repo search
args.query.remove(query)

if not args.multi_package and success:
sys.exit()
if not args.multi_package:
sys.exit()

# Search repos
if not args.multi_package:
Expand Down

0 comments on commit ef1eb8d

Please sign in to comment.