From fb79e703b8a2b339c45a3e99d3283d314d0258fb Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Mon, 23 Apr 2018 14:12:16 -0400 Subject: [PATCH] Simplify FilterSet instance in MemorySource --- stix2/datastore/memory.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stix2/datastore/memory.py b/stix2/datastore/memory.py index c43da8b..c1d202d 100644 --- a/stix2/datastore/memory.py +++ b/stix2/datastore/memory.py @@ -268,10 +268,7 @@ class MemorySource(DataSource): is returned in the same form as it as added. """ - if query is None: - query = FilterSet() - else: - query = FilterSet(query) + query = FilterSet(query) # combine all query filters if self.filters: