diff --git a/cs_misp_import/intel_client.py b/cs_misp_import/intel_client.py index c5291ca..6e68e04 100644 --- a/cs_misp_import/intel_client.py +++ b/cs_misp_import/intel_client.py @@ -60,7 +60,7 @@ def get_reports(self, start_time): first_run = False resources = resp_json.get('resources', []) - if resources is not None and len(resources) > 0: + if resources: reports.extend(resp_json.get('resources', [])) return reports