Code cleanup
This commit is contained in:
parent
a74ccfa575
commit
be00516521
18 changed files with 209 additions and 202 deletions
|
@ -1,5 +1,5 @@
|
|||
"use strict";
|
||||
var path = require('path');
|
||||
var path = require("path");
|
||||
|
||||
var services = [];
|
||||
|
||||
|
@ -17,7 +17,7 @@ module.exports = function(url) {
|
|||
matchedService = service.match(url) ? service : null;
|
||||
return matchedService;
|
||||
});
|
||||
|
||||
|
||||
if (matchedService) {
|
||||
return matchedService.parseUrl(url).timeout(10000).then(function(result) {
|
||||
return matchedService.lookupId(result.id, result.type).then(function(item) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue