Cleanup: Remove pointless calls to close()
Since "with open()" automatically closes the files anyway.
This commit is contained in:
@@ -41,8 +41,6 @@ def get_games(game_ids=None):
|
||||
for game in game_files:
|
||||
with open(os.path.join(games_dir, game), "r") as open_file:
|
||||
data = json.loads(open_file.read())
|
||||
open_file.close()
|
||||
|
||||
games[data["game_id"]] = data
|
||||
|
||||
return games
|
||||
|
||||
Reference in New Issue
Block a user