Refactor utils.py by removing old comments
Removed unnecessary comments and cleaned up code.
This commit is contained in:
4
utils.py
4
utils.py
@@ -45,10 +45,6 @@ def load_json(path):
|
|||||||
try:
|
try:
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
|
|
||||||
# Ensure migration happens if loading old file
|
|
||||||
# We don't change structure here, HistoryTree class handles logic
|
|
||||||
|
|
||||||
return data, get_file_mtime(path)
|
return data, get_file_mtime(path)
|
||||||
except:
|
except:
|
||||||
return DEFAULTS.copy(), 0
|
return DEFAULTS.copy(), 0
|
||||||
|
|||||||
Reference in New Issue
Block a user