From b9dd4a2f5f138f8c8e419283e3a8b24740a72675 Mon Sep 17 00:00:00 2001 From: Gusted Date: Mon, 22 Aug 2022 18:31:39 +0200 Subject: [PATCH] Make revive linter happy --- routers/api/v1/activitypub/repo.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/routers/api/v1/activitypub/repo.go b/routers/api/v1/activitypub/repo.go index 30142ac61..b41ffaca2 100644 --- a/routers/api/v1/activitypub/repo.go +++ b/routers/api/v1/activitypub/repo.go @@ -134,10 +134,9 @@ func RepoInbox(ctx *context.APIContext) { if t.Origin != nil { // New pull request return activitypub.PullRequest(ctx, t) - } else { - // New issue - return activitypub.Issue(ctx, t) } + // New issue + return activitypub.Issue(ctx, t) }) case ap.NoteType: // New comment