Skip to content

Commit 426506c

Browse files
committed
Clean up dict comprehension
Note: box.Box isnt even being used, so i dont think theres a point in having it anymore as a requirement.
1 parent 0043f50 commit 426506c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/config.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ def populate_cache(self):
5555
pass
5656
finally:
5757
data.update(os.environ)
58-
data = {k.lower(): v for k, v in data.items()
59-
if k.lower() in self.valid_keys}
60-
self.cache = data
58+
self.cache = {
59+
k.lower(): v for k, v in data.items()
60+
if k.lower() in self.valid_keys
61+
}
6162

6263
async def update(self, data=None):
6364
"""Updates the config with data from the cache"""

0 commit comments

Comments
 (0)