From df1966c9b48fd3cb3e0ec227bac97065d0122d78 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 24 Nov 2017 15:00:10 +0100 Subject: Fix lint --- server/lib/activitypub/send/misc.ts | 4 ++-- .../activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib') diff --git a/server/lib/activitypub/send/misc.ts b/server/lib/activitypub/send/misc.ts index fe137464e..444c1cbd6 100644 --- a/server/lib/activitypub/send/misc.ts +++ b/server/lib/activitypub/send/misc.ts @@ -29,7 +29,7 @@ async function forwardActivity ( if (uris.length === 0) { logger.info('0 followers for %s, no forwarding.', toAccountFollowers.map(a => a.id).join(', ')) - return + return undefined } logger.debug('Creating forwarding job.', { uris }) @@ -52,7 +52,7 @@ async function broadcastToFollowers ( const uris = await computeFollowerUris(toAccountFollowers, followersException) if (uris.length === 0) { logger.info('0 followers for %s, no broadcasting.', toAccountFollowers.map(a => a.id).join(', ')) - return + return undefined } logger.debug('Creating broadcast job.', { uris }) diff --git a/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts b/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts index f1fe774cc..fcc81eb16 100644 --- a/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts +++ b/server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts @@ -50,7 +50,7 @@ async function computeBody (payload: ActivityPubHttpPayload) { if (!accountSignature) throw new Error('Unknown signature account id.') body = await buildSignedActivity(accountSignature, payload.body) } - + return body } -- cgit v1.2.3