Skip to content

Commit

Permalink
Simplified bool lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
vktr committed Apr 20, 2015
1 parent ab7b5c8 commit de32204
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/extensions/extensionsubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ const char* ExtensionSubsystem::name() const
void ExtensionSubsystem::loadExtension(std::string extensionName, AbstractConfiguration& config)
{
// Only load extensions which are excplicitly enabled, eg. "enabled": true.

if (!config.hasProperty("enabled")
|| !config.getBool("enabled"))
if (!config.getBool("enabled", false))
{
return;
}
Expand Down

0 comments on commit de32204

Please sign in to comment.