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 @@
.push(function (meta_schema) {
return new RSVP.Queue()
.push(function () {
return $RefParser
.dereference(url)
.then(function (schema) {
return schema;
});
return $RefParser.dereference(url);
})
.push(function (schema) {
var validator = new Validator(JSON.parse(meta_schema), '7');
......@@ -72,10 +68,7 @@
return new RSVP.Queue()
.push(function () {
return $RefParser
.dereference("slapos_load_software_schema.json")
.then(function (software_schema) {
return software_schema;
});
.dereference("slapos_load_software_schema.json");
})
.push(function (software_schema) {
var software_json = JSON.parse(software_cfg_json),
......@@ -99,11 +92,7 @@
return new RSVP.Queue()
.push(function () {
return $RefParser
.dereference(parameter_schema_url)
.then(function (schema) {
return schema;
});
return $RefParser.dereference(parameter_schema_url);
})
.push(function (schema) {
return new Validator(schema, '7', false).validate(generated_json);
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1003.49132.42731.30429</string> </value>
<value> <string>1003.58311.45202.41659</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1666203750.58</float>
<float>1666754395.83</float>
<string>UTC</string>
</tuple>
</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