0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed unneeded Promise.resolve

no issue

- was not removed during url service cleanup
- the function runs synchronously
- has no impact on functionality
This commit is contained in:
kirrg001 2018-04-17 15:55:55 +02:00
parent 79c790c891
commit f9ffc395c0

View file

@ -1,7 +1,6 @@
'use strict';
const _ = require('lodash'),
Promise = require('bluebird'),
moment = require('moment-timezone'),
jsonpath = require('jsonpath'),
debug = require('ghost-ignition').debug('services:url:generator'),
@ -89,7 +88,7 @@ class UrlGenerator {
// CASE: you are type "pages", but the incoming type is "users"
if (event.type !== this.routingType.getType()) {
return Promise.resolve();
return;
}
const resource = this.resources.getByIdAndType(event.type, event.id);