From e19ae644f10e402bce8eccb0f3c06b28c97653a9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 Apr 2019 00:13:31 +0900 Subject: [PATCH] Fix indent --- src/remote/activitypub/kernel/delete/index.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/remote/activitypub/kernel/delete/index.ts b/src/remote/activitypub/kernel/delete/index.ts index fab5e7ab64..199a6a6187 100644 --- a/src/remote/activitypub/kernel/delete/index.ts +++ b/src/remote/activitypub/kernel/delete/index.ts @@ -20,21 +20,21 @@ export default async (actor: IRemoteUser, activity: IDelete): Promise => { const uri = (object as any).id; switch (object.type) { - case 'Note': - case 'Question': - case 'Article': - deleteNote(actor, uri); - break; - - case 'Tombstone': - const note = await Notes.findOne({ uri }); - if (note != null) { + case 'Note': + case 'Question': + case 'Article': deleteNote(actor, uri); - } - break; + break; - default: - apLogger.warn(`Unknown type: ${object.type}`); - break; + case 'Tombstone': + const note = await Notes.findOne({ uri }); + if (note != null) { + deleteNote(actor, uri); + } + break; + + default: + apLogger.warn(`Unknown type: ${object.type}`); + break; } };