From f9ffc395c01309595bf8000ba14984535d7f02e9 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Tue, 17 Apr 2018 15:55:55 +0200 Subject: [PATCH] Removed unneeded Promise.resolve no issue - was not removed during url service cleanup - the function runs synchronously - has no impact on functionality --- core/server/services/url/UrlGenerator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/server/services/url/UrlGenerator.js b/core/server/services/url/UrlGenerator.js index cf9915a1804f..85165a7c024f 100644 --- a/core/server/services/url/UrlGenerator.js +++ b/core/server/services/url/UrlGenerator.js @@ -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);