]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
reader: JsonObject: whitespace fixes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Jan 2021 15:17:35 +0000 (16:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Jan 2021 15:17:35 +0000 (16:17 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/data/reader/JsonObject.js

index 0489df88269cd7916fde5f07ae73312633225990..ef82fb87a2259ce1e2802ee8f3717bb4ad9efb33 100644 (file)
@@ -48,9 +48,9 @@ Ext.define('Proxmox.data.reader.JsonObject', {
 
        let data = [];
         try {
-        let result = Ext.decode(response.responseText);
-        // get our data items inside the server response
-        let root = result[me.getRootProperty()];
+           let result = Ext.decode(response.responseText);
+           // get our data items inside the server response
+           let root = result[me.getRootProperty()];
 
            if (me.readArray) {
                let rec_hash = {};
@@ -109,15 +109,14 @@ Ext.define('Proxmox.data.reader.JsonObject', {
                }
            }
        } catch (ex) {
-            Ext.Error.raise({
-                response: response,
-                json: response.responseText,
-                parseError: ex,
-                msg: 'Unable to parse the JSON returned by the server: ' + ex.toString(),
-            });
-        }
+           Ext.Error.raise({
+               response: response,
+               json: response.responseText,
+               parseError: ex,
+               msg: 'Unable to parse the JSON returned by the server: ' + ex.toString(),
+           });
+       }
 
        return data;
     },
 });
-