Changeset

9436:a950f9fa9137

mod_version: Reduce scope of variable It is only used in this if block anyways
author Kim Alvefur <zash@zash.se>
date Sat, 06 Oct 2018 16:38:05 +0200
parents 9435:33301038d3e4
children 9437:b202aa1e2d7b
files plugins/mod_version.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_version.lua	Sat Oct 06 16:32:37 2018 +0200
+++ b/plugins/mod_version.lua	Sat Oct 06 16:38:05 2018 +0200
@@ -10,13 +10,12 @@
 
 module:add_feature("jabber:iq:version");
 
-local platform;
-
 local query = st.stanza("query", {xmlns = "jabber:iq:version"})
 	:text_tag("name", "Prosody")
 	:text_tag("version", prosody.version);
 
 if not module:get_option_boolean("hide_os_type") then
+	local platform;
 	if os.getenv("WINDIR") then
 		platform = "Windows";
 	else