Skip to content

Commit 420d2af

Browse files
committed
Use generator instead of map
1 parent cc80e6b commit 420d2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/index/typ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __call__(self, stage_blob: Tuple[StageType, Blob]) -> bool:
5757
for pathlike in self.paths:
5858
path: Path = pathlike if isinstance(pathlike, Path) else Path(pathlike)
5959
# TODO: Change to use `PosixPath.is_relative_to` once Python 3.8 is no longer supported.
60-
if all(map(lambda t: t[0] == t[1], zip(path.parts, blob_path.parts))):
60+
if all(i == j for i, j in zip(path.parts, blob_path.parts)):
6161
return True
6262
return False
6363

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy