summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-27 15:54:46 -0600
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-27 15:54:46 -0600
commit4333b8fe03d50ae9cfd5dfb5c656cc48302dc072 (patch)
tree7ebdec1641c7780f7ff0792117fe513a65f93149
parent63290ccce102495427a26e689725e565a03ae77a (diff)
downloadsink-4333b8fe03d50ae9cfd5dfb5c656cc48302dc072.tar.gz
sink-4333b8fe03d50ae9cfd5dfb5c656cc48302dc072.zip
Empty resource id's are valid when we search for resources.
-rw-r--r--common/store.cpp6
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