diff options
Diffstat (limited to 'src/mbgl/storage/shared_request_base.hpp')
-rw-r--r-- | src/mbgl/storage/shared_request_base.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mbgl/storage/shared_request_base.hpp b/src/mbgl/storage/shared_request_base.hpp index 3cd33b2ed9..3fc0c5bfe3 100644 --- a/src/mbgl/storage/shared_request_base.hpp +++ b/src/mbgl/storage/shared_request_base.hpp @@ -34,14 +34,13 @@ public: void notify(std::shared_ptr<const Response> response, FileCache::Hint hint) { MBGL_VERIFY_THREAD(tid); + assert(response); source.notify(this, response, hint); - if (response) { - // Notify all observers. - for (auto req : observers) { - req->notify(response); - } + // Notify all observers. + for (auto req : observers) { + req->notify(response); } } |