diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-27 15:54:46 -0600 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-27 15:54:46 -0600 |
commit | 4333b8fe03d50ae9cfd5dfb5c656cc48302dc072 (patch) | |
tree | 7ebdec1641c7780f7ff0792117fe513a65f93149 /common/store.cpp | |
parent | 63290ccce102495427a26e689725e565a03ae77a (diff) | |
download | sink-4333b8fe03d50ae9cfd5dfb5c656cc48302dc072.tar.gz sink-4333b8fe03d50ae9cfd5dfb5c656cc48302dc072.zip |
Empty resource id's are valid when we search for resources.
Diffstat (limited to 'common/store.cpp')
-rw-r--r-- | common/store.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/store.cpp b/common/store.cpp index 33d7b51..b0aac4c 100644 --- a/common/store.cpp +++ b/common/store.cpp | |||
@@ -49,12 +49,6 @@ static bool sanityCheckQuery(const Sink::Query &query) | |||
49 | return false; | 49 | return false; |
50 | } | 50 | } |
51 | } | 51 | } |
52 | for (const auto &id : query.getResourceFilter().ids) { | ||
53 | if (id.isEmpty()) { | ||
54 | SinkError() << "Empty resourceid in query."; | ||
55 | return false; | ||
56 | } | ||
57 | } | ||
58 | return true; | 52 | return true; |
59 | } | 53 | } |
60 | 54 | ||