From 98ab5dc81048d47d08a231f17698128f959e59b2 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 25 Aug 2021 16:14:11 +0200 Subject: Remove useless async --- server/lib/notifier/shared/follow/auto-follow-for-instance.ts | 2 +- server/lib/notifier/shared/follow/follow-for-instance.ts | 2 +- server/lib/notifier/shared/follow/follow-for-user.ts | 2 +- server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts | 2 +- server/lib/notifier/shared/instance/new-plugin-version-for-admins.ts | 2 +- server/lib/notifier/shared/instance/registration-for-moderators.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'server/lib/notifier/shared') diff --git a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts index 16cc62984..01d2b3563 100644 --- a/server/lib/notifier/shared/follow/auto-follow-for-instance.ts +++ b/server/lib/notifier/shared/follow/auto-follow-for-instance.ts @@ -35,7 +35,7 @@ export class AutoFollowForInstance extends AbstractNotification { return notification } - async createEmail (to: string) { + createEmail (to: string) { const awaitingApproval = this.actorFollow.state === 'pending' ? ' awaiting manual approval.' : '' diff --git a/server/lib/notifier/shared/follow/follow-for-user.ts b/server/lib/notifier/shared/follow/follow-for-user.ts index 2d0f675a8..e579d4487 100644 --- a/server/lib/notifier/shared/follow/follow-for-user.ts +++ b/server/lib/notifier/shared/follow/follow-for-user.ts @@ -56,7 +56,7 @@ export class FollowForUser extends AbstractNotification { return notification } - async createEmail (to: string) { + createEmail (to: string) { const following = this.actorFollow.ActorFollowing const follower = this.actorFollow.ActorFollower diff --git a/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts b/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts index ab5bfb1ac..6b5ac808a 100644 --- a/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts +++ b/server/lib/notifier/shared/instance/new-peertube-version-for-admins.ts @@ -41,7 +41,7 @@ export class NewPeerTubeVersionForAdmins extends AbstractNotification { return notification } - async createEmail (to: string) { + createEmail (to: string) { const pluginUrl = WEBSERVER.URL + '/admin/plugins/list-installed?pluginType=' + this.plugin.type return { diff --git a/server/lib/notifier/shared/instance/registration-for-moderators.ts b/server/lib/notifier/shared/instance/registration-for-moderators.ts index 4deb5a2cc..2a48ef2fa 100644 --- a/server/lib/notifier/shared/instance/registration-for-moderators.ts +++ b/server/lib/notifier/shared/instance/registration-for-moderators.ts @@ -36,7 +36,7 @@ export class RegistrationForModerators extends AbstractNotification