Skip to content

Commit

Permalink
fix: type return -> continue in require
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Apr 27, 2022
1 parent c417c2b commit 10acca2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions beet/toolchain/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def require(self, *args: GenericPluginSpec[T]):
for spec in args:
plugin = self.resolve(spec)
if plugin in self.plugins:
return
continue

self.plugins.add(plugin)

Expand All @@ -134,8 +134,7 @@ def resolve(self, spec: GenericPluginSpec[T]) -> GenericPlugin[T]:

def run(self, specs: Iterable[GenericPluginSpec[T]] = ()):
"""Run the specified plugins."""
for spec in specs:
self.require(spec)
self.require(*specs)

while self.tasks:
if remaining_work := self.tasks.pop().advance(self.ctx):
Expand Down

0 comments on commit 10acca2

Please sign in to comment.