N_SE-38636 : proper exception code
[platform/framework/native/appfw.git] / src / app / FApp_AppResourceImpl.cpp
index fe9c18f..dcb5d99 100644 (file)
@@ -94,7 +94,7 @@ _AppResourceImpl::GetInstanceN(AppResourceBy type, const Tizen::Base::String& va
        r = __pContainer->ContainsKey(value, hasAppResource);
        SysTryReturn(NID_APP, !IsFailed(r), null, r, "[%s] Checking to contain is failed.", GetErrorMessage(r));
 
-       if(hasAppResource == true)
+       if (hasAppResource)
        {
                return static_cast<AppResource*> (__pContainer->GetValue(value));
        }