Fix None comparisons in TIAF scripts.

Signed-off-by: John <jonawals@amazon.com>
This commit is contained in:
John
2021-08-10 15:13:19 +01:00
parent c2a2d1c5c7
commit 2be043ca96
4 changed files with 12 additions and 10 deletions
@@ -104,7 +104,7 @@ class PersistentStorage(ABC):
"""
historic_data_json = self._pack_historic_data(last_commit_hash)
if historic_data_json is not None:
if historic_data_json:
self._store_historic_data(historic_data_json)
else:
logger.info("The historic data could not be successfully stored.")