From 8bee4508a5d8ee659a5014785e9b359cd462c317 Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 3 Dec 2024 15:34:33 +0000 Subject: [PATCH] grrr linter --- internal/db/bundb/statusedit.go | 3 +-- internal/processing/workers/util.go | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/db/bundb/statusedit.go b/internal/db/bundb/statusedit.go index fc1520468..c932968fd 100644 --- a/internal/db/bundb/statusedit.go +++ b/internal/db/bundb/statusedit.go @@ -151,8 +151,7 @@ func (s *statusEditDB) PutStatusEdit(ctx context.Context, edit *gtsmodel.StatusE func (s *statusEditDB) DeleteStatusEdits(ctx context.Context, ids []string) error { // Gather necessary fields from // deleted for cache invalidation. - var deleted []*gtsmodel.StatusEdit - deleted = make([]*gtsmodel.StatusEdit, 0, len(ids)) + deleted := make([]*gtsmodel.StatusEdit, 0, len(ids)) // Delete all edits with IDs pertaining // to given slice, returning status IDs. diff --git a/internal/processing/workers/util.go b/internal/processing/workers/util.go index d215caf34..b358dc951 100644 --- a/internal/processing/workers/util.go +++ b/internal/processing/workers/util.go @@ -28,7 +28,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" "github.com/superseriousbusiness/gotosocial/internal/log" "github.com/superseriousbusiness/gotosocial/internal/processing/account" - "github.com/superseriousbusiness/gotosocial/internal/processing/common" "github.com/superseriousbusiness/gotosocial/internal/processing/media" "github.com/superseriousbusiness/gotosocial/internal/state" "github.com/superseriousbusiness/gotosocial/internal/typeutils" @@ -38,9 +37,6 @@ import ( // util provides util functions used by both // the fromClientAPI and fromFediAPI functions. type utils struct { - // common processor logic - c *common.Processor - state *state.State media *media.Processor account *account.Processor