Changeset

4915:1d231fb827d3

mod_rest/jsonmap: Fix indentation
author Kim Alvefur <zash@zash.se>
date Thu, 07 Apr 2022 15:39:11 +0200
parents 4914:f2c918fe8cf0
children 4916:3dc8e329d233
files mod_rest/jsonmap.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();