core.moduleapi: Remove redundant condition
authorKim Alvefur <zash@zash.se>
Thu, 18 Oct 2018 00:49:29 +0200
changeset 9512 b57353f76c83
parent 9511 2055b497b515
child 9513 8ef46d09386a
core.moduleapi: Remove redundant condition
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