Commit 7586306b authored by project's avatar project

--no commit message

--no commit message
parent daf992f6
...@@ -79,7 +79,7 @@ function getData(url, lts, dtype, callback) { ...@@ -79,7 +79,7 @@ function getData(url, lts, dtype, callback) {
}); });
beforeDateCheck(cts, lts); beforeDateCheck(cts, lts);
} }
else callback(err); else callback();
function beforeDateCheck(ct, lt){ function beforeDateCheck(ct, lt){
if (lt.isBefore(ct, 'days')) { if (lt.isBefore(ct, 'days')) {
...@@ -95,7 +95,7 @@ function getData(url, lts, dtype, callback) { ...@@ -95,7 +95,7 @@ function getData(url, lts, dtype, callback) {
}); });
beforeDateCheck(ct, lt); beforeDateCheck(ct, lt);
} }
else callback(err); else callback();
}).catch((err) => { }).catch((err) => {
callback(err); callback(err);
}); });
......
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