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:
parent
79c790c891
commit
f9ffc395c0
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue