Skip to content

Commit 66ec8c1

Browse files
committed
Clean MDC for Stardew Valley.
1 parent 26949bd commit 66ec8c1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

games/game_stardewvalley.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def __init__(self):
1414
def dataLooksValid(
1515
self, tree: mobase.IFileTree
1616
) -> mobase.ModDataChecker.CheckReturn:
17-
count_ok = 0
17+
1818
for e in tree:
19-
if e.isDir():
20-
count_ok = e.exists("manifest.json", mobase.IFileTree.FILE) # type: ignore
19+
if e.isDir() and e.exists( # type: ignore
20+
"manifest.json", mobase.IFileTree.FILE
21+
):
22+
return mobase.ModDataChecker.VALID
2123

22-
if count_ok > 0:
23-
return mobase.ModDataChecker.VALID
2424
return mobase.ModDataChecker.INVALID
2525

2626

0 commit comments

Comments
 (0)