From 18f317a4acb5125d01fc4e5cc29cc47627738c9f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Apr 2018 23:59:03 +0900 Subject: [PATCH] Refactor --- src/remote/activitypub/act/undo/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/remote/activitypub/act/undo/index.ts b/src/remote/activitypub/act/undo/index.ts index 38d5bfe21..11c7ec0c8 100644 --- a/src/remote/activitypub/act/undo/index.ts +++ b/src/remote/activitypub/act/undo/index.ts @@ -2,7 +2,7 @@ import act from '../../act'; import unfollow from './unfollow'; import Resolver from '../../resolver'; -export default async (resolver: Resolver, actor, activity) => { +export default async (resolver: Resolver, actor, activity): Promise => { if ('actor' in activity && actor.account.uri !== activity.actor) { throw new Error(); } @@ -21,6 +21,4 @@ export default async (resolver: Resolver, actor, activity) => { await unfollow(result.object); } })); - - return null; };