aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-18 00:49:29 +0200
committerKim Alvefur <zash@zash.se>2018-10-18 00:49:29 +0200
commit4e79f05c854857d4ddf0baeba0a4b25a65bd650c (patch)
tree845ad8f21870a2b5bab3072b6adf358bc8138819 /core/moduleapi.lua
parentc43aa85d84a3f9721a126689add6a644c30ed9f0 (diff)
downloadprosody-4e79f05c854857d4ddf0baeba0a4b25a65bd650c.tar.gz
prosody-4e79f05c854857d4ddf0baeba0a4b25a65bd650c.zip
core.moduleapi: Remove redundant condition
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 76d9d958..c19594c1 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -287,7 +287,7 @@ end
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