Remove try..catch

This commit is contained in:
John Furrow
2016-02-27 00:12:21 -08:00
parent 5563d32e3f
commit b6397a5f3c
+11 -15
View File
@@ -100,25 +100,21 @@ class ClientRequest {
}
addURLsMethodCall(options) {
try {
let path = options.path;
let urls = this.getEnsuredArray(options.urls);
let path = options.path;
let urls = this.getEnsuredArray(options.urls);
urls.forEach((url) => {
let parameters = ['', url];
let timeAdded = Math.floor(Date.now() / 1000);
urls.forEach((url) => {
let parameters = ['', url];
let timeAdded = Math.floor(Date.now() / 1000);
if (path && path !== '') {
parameters.push(`d.directory.set="${path}"`);
}
if (path && path !== '') {
parameters.push(`d.directory.set="${path}"`);
}
parameters.push(`d.custom.set=addtime,${timeAdded}`);
parameters.push(`d.custom.set=addtime,${timeAdded}`);
this.requests.push(this.getMethodCall('load.start', parameters));
});
} catch (error) {
console.log(error);
}
this.requests.push(this.getMethodCall('load.start', parameters));
});
}
createDirectoryMethodCall(options) {