Commit 8bd4212c authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: No need .then after dereference

   It is a useless block
parent 3e5d9c4f
...@@ -51,11 +51,7 @@ ...@@ -51,11 +51,7 @@
.push(function (meta_schema) { .push(function (meta_schema) {
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return $RefParser return $RefParser.dereference(url);
.dereference(url)
.then(function (schema) {
return schema;
});
}) })
.push(function (schema) { .push(function (schema) {
var validator = new Validator(JSON.parse(meta_schema), '7'); var validator = new Validator(JSON.parse(meta_schema), '7');
...@@ -72,10 +68,7 @@ ...@@ -72,10 +68,7 @@
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return $RefParser return $RefParser
.dereference("slapos_load_software_schema.json") .dereference("slapos_load_software_schema.json");
.then(function (software_schema) {
return software_schema;
});
}) })
.push(function (software_schema) { .push(function (software_schema) {
var software_json = JSON.parse(software_cfg_json), var software_json = JSON.parse(software_cfg_json),
...@@ -99,11 +92,7 @@ ...@@ -99,11 +92,7 @@
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return $RefParser return $RefParser.dereference(parameter_schema_url);
.dereference(parameter_schema_url)
.then(function (schema) {
return schema;
});
}) })
.push(function (schema) { .push(function (schema) {
return new Validator(schema, '7', false).validate(generated_json); return new Validator(schema, '7', false).validate(generated_json);
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>1003.49132.42731.30429</string> </value> <value> <string>1003.58311.45202.41659</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1666203750.58</float> <float>1666754395.83</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment