core/moduleapi.lua
changeset 9512 b57353f76c83
parent 9152 d03f21729b2c
child 9559 e4c09e335bd9
--- 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