Skip to content

Commit 358924f

Browse files
[pre-commit.ci] Auto fixes from pre-commit.com hooks.
1 parent 8c68398 commit 358924f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

games/game_stalker2heartofchornobyl.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,7 @@ def mappings(self) -> List[mobase.Mapping]:
143143
source_dirs = ["Paks/", "~mods/", "Content/Paks/~mods/"]
144144
for source_dir in source_dirs:
145145
for ext in pak_extensions:
146-
mappings.append(
147-
mobase.Mapping(f"{source_dir}{ext}", target_dir, False)
148-
)
146+
mappings.append(mobase.Mapping(f"{source_dir}{ext}", target_dir, False))
149147

150148
return mappings
151149

@@ -211,9 +209,7 @@ def activeProblems(self) -> list[int]:
211209
filetree = mod_info.fileTree()
212210

213211
for entry in filetree:
214-
if entry.name().endswith(
215-
(".pak", ".utoc", ".ucas")
216-
) and not any(
212+
if entry.name().endswith((".pak", ".utoc", ".ucas")) and not any(
217213
entry.path().startswith(p)
218214
for p in ["Content/Paks/~mods", "Paks", "~mods"]
219215
):

0 commit comments

Comments
 (0)