From 2de254acf7c23ae1cf17a08b437590e2199b26a8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 18 Oct 2018 00:49:29 +0200 Subject: core.moduleapi: Remove redundant condition --- core/moduleapi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3