# HG changeset patch # User Kim Alvefur # Date 1539816569 -7200 # Node ID b57353f76c8397ae1ecb1e61d4528862c1410dd0 # Parent 2055b497b5150a47fbd66ac643a73d7b32d65653 core.moduleapi: Remove redundant condition diff -r 2055b497b515 -r b57353f76c83 core/moduleapi.lua --- a/core/moduleapi.lua Fri Oct 12 03:22:09 2018 +0200 +++ b/core/moduleapi.lua Thu Oct 18 00:49:29 2018 +0200 @@ -287,7 +287,7 @@ function api:get_option_path(name, default, parent) if parent == nil then - parent = parent or self:get_directory(); + parent = self:get_directory(); elseif prosody.paths[parent] then parent = prosody.paths[parent]; end