WIP Fix returns and function calls

This commit is contained in:
erik 2023-02-21 09:54:18 +01:00
parent 156d336314
commit 1dc5a1e9e8

View file

@ -10,7 +10,7 @@ class VersionRepository():
def load_file(self):
self.file_handler = FileHandler.from_file_path(self.file)
return file_handler
return self.file_handler
def write_file(self, version_string):
if self.file_handler is None:
@ -28,7 +28,7 @@ class VersionRepository():
def get(cls, file):
inst = cls(file)
file_handler= inst.load_file(file)
file_handler = inst.load_file()
version_list, is_snapshot = inst.parse_file(file_handler)
inst.version_list = version_list