Changeset

9509:b57353f76c83

core.moduleapi: Remove redundant condition
author Kim Alvefur <zash@zash.se>
date Thu, 18 Oct 2018 00:49:29 +0200
parents 9508:2055b497b515
children 9510:8ef46d09386a
files core/moduleapi.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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