summaryrefslogtreecommitdiffstats
path: root/src/shared/ResourceImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/ResourceImpl.cpp')
-rw-r--r--src/shared/ResourceImpl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index 4dd25602..10c57fbe 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -34,10 +34,7 @@ ResourceImpl::get_property(const std::string& uri) const
{
static const Raul::Atom nil;
Properties::const_iterator i = _properties.find(uri);
- if (i == _properties.end())
- return nil;
- else
- return i->second;
+ return (i != _properties.end()) ? i->second : nil;
}