Skip to content

Commit

Permalink
#14882 Remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave3of5 authored and daniellockyer committed Aug 24, 2022
1 parent 57c3e92 commit 2e5401e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ghost/core/core/server/services/url/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Resources {
* 3 event listeners connected to "_onResourceUpdated" handler and it's 'tag.edited', 'tag.attached', 'tag.detached' events
* 1 event listener connected to "_onResourceRemoved" handler and it's 'tag.deleted' event
*/
async initEventListeners() {
initEventListeners() {
_.each(this.resourcesConfig, (resourceConfig) => {
this.data[resourceConfig.type] = [];

Expand Down
4 changes: 2 additions & 2 deletions ghost/core/core/server/services/url/UrlService.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ class UrlService {
this.urls.urls = persistedUrls;
this.resources.data = persistedResources;
this.resources.initResourceConfig();
await this.resources.initEventListeners();
this.resources.initEventListeners();

this._onQueueEnded('init');
} else {
this.resources.initResourceConfig();
await this.resources.initEventListeners();
this.resources.initEventListeners();
await this.resources.fetchResources();
// CASE: all resources are fetched, start the queue
this.queue.start({
Expand Down

0 comments on commit 2e5401e

Please sign in to comment.