mod_rest/jsonmap: Fix indentation
authorKim Alvefur <zash@zash.se>
Thu, 07 Apr 2022 15:39:11 +0200
changeset 4919 1d231fb827d3
parent 4918 f2c918fe8cf0
child 4920 3dc8e329d233
mod_rest/jsonmap: Fix indentation
mod_rest/jsonmap.lib.lua
--- a/mod_rest/jsonmap.lib.lua	Mon Apr 04 17:50:24 2022 +0200
+++ b/mod_rest/jsonmap.lib.lua	Thu Apr 07 15:39:11 2022 +0200
@@ -552,8 +552,8 @@
 	for k, v in pairs(t) do
 		local mapping = field_mappings[k];
 		if mapping and mapping.type == "func" and mapping.json2st then
-				s:add_child(mapping.json2st(v)):up();
-			end
+			s:add_child(mapping.json2st(v)):up();
+		end
 	end
 
 	s:reset();