From 63a9f4a5ff63d16cee8e5075c63f7959a1327c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neum=C3=BCller?= Date: Thu, 27 Jun 2013 17:24:33 +0200 Subject: [PATCH] ResourceManager: Avoid warning. --- src/ressys/ResourceManager.inl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ressys/ResourceManager.inl b/src/ressys/ResourceManager.inl index 8c6c834..f1a2c9b 100644 --- a/src/ressys/ResourceManager.inl +++ b/src/ressys/ResourceManager.inl @@ -116,8 +116,7 @@ typename ResourceManager::Ptr ResourceManager::get( auto result = tryGet(name); if (!result) LOG_THROW(jd::ResourceError("resource \"" + name + "\" is not loaded")); - else - return result; + return result; } template