# HG changeset patch
# User João Duarte <jvsDuarte08@gmail.com>
# Date 1564672086 25200
# Node ID 3409f746f978e5508c472cc3920fd3a2972fded3
# Parent  dad1bc5fdb8e51772e319fc669301e08d4a7aaaf
util.startup: Directly calling lfs.currentdir instead of storing it in a local variable

diff -r dad1bc5fdb8e -r 3409f746f978 util/startup.lua
--- a/util/startup.lua	Thu Aug 01 08:02:26 2019 -0700
+++ b/util/startup.lua	Thu Aug 01 08:08:06 2019 -0700
@@ -236,8 +236,7 @@
 		CFG_PLUGINDIR = table.concat(custom_plugin_paths, path_sep)..path_sep..(CFG_PLUGINDIR or "plugins");
 		prosody.paths.plugins = CFG_PLUGINDIR;
 	end
-	local current_directory = require "lfs".currentdir();
-	installer_plugin_path = config.resolve_relative_path(current_directory, installer_plugin_path);
+	installer_plugin_path = config.resolve_relative_path(require "lfs".currentdir(), installer_plugin_path);
 	require "lfs".mkdir(installer_plugin_path)
 	-- Checking for duplicates
 	-- The commands using luarocks need the path to the directory that has the /share and /lib folders.