Commit 68f5d92f authored by Tom Pollard's avatar Tom Pollard

element.py: Remove redundant fully private __get_build_result()

This was being accessed via a local private method that wasn't
augmenting the output as such it can be moved.
parent f3b7c221
......@@ -1056,7 +1056,10 @@ class Element(Plugin):
# (str): Detailed description of the result
#
def _get_build_result(self):
return self.__get_build_result()
if self.__build_result is None:
self.__load_build_result()
return self.__build_result
# __set_build_result():
#
......@@ -2893,18 +2896,11 @@ class Element(Plugin):
self.__build_result = self.__artifact.load_build_result()
def __get_build_result(self):
if self.__build_result is None:
self.__load_build_result()
return self.__build_result
def __cached_success(self):
if not self._cached():
return False
success, _, _ = self.__get_build_result()
success, _, _ = self._get_build_result()
return success
def __get_cache_keys_for_commit(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment