Mercurial > prosody-hg
diff core/moduleapi.lua @ 9509:b57353f76c83
core.moduleapi: Remove redundant condition
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 18 Oct 2018 00:49:29 +0200 |
| parents | d03f21729b2c |
| children | e4c09e335bd9 |
line wrap: on
line diff
--- 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
