Skip to content

Commit 9ecf8d4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 32834ec commit 9ecf8d4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/scmrepo/git/backend/dulwich/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -605,11 +605,7 @@ def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
605605

606606
if base:
607607
base_b = os.fsencode(base)
608-
yield from (
609-
os.fsdecode(ref)
610-
for ref in refs
611-
if ref.startswith(base_b)
612-
)
608+
yield from (os.fsdecode(ref) for ref in refs if ref.startswith(base_b))
613609
else:
614610
yield from (os.fsdecode(ref) for ref in refs)
615611
except NotGitRepository as exc:

0 commit comments

Comments
 (0)