From 3674223d27bcb93a1c818fcb8c697954dfd4ee7d Mon Sep 17 00:00:00 2001 From: tobi Date: Tue, 7 Jan 2025 17:54:08 +0100 Subject: [PATCH] don't use receiver for permsFrom funcs --- internal/subscriptions/domainperms.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/subscriptions/domainperms.go b/internal/subscriptions/domainperms.go index 75403176e..de61abde5 100644 --- a/internal/subscriptions/domainperms.go +++ b/internal/subscriptions/domainperms.go @@ -272,15 +272,15 @@ func (s *Subscriptions) ProcessDomainPermissionSubscription( // text/csv case gtsmodel.DomainPermSubContentTypeCSV: - wantedPerms, err = s.permsFromCSV(l, permSub.PermissionType, resp.Body) + wantedPerms, err = permsFromCSV(l, permSub.PermissionType, resp.Body) // application/json case gtsmodel.DomainPermSubContentTypeJSON: - wantedPerms, err = s.permsFromJSON(l, permSub.PermissionType, resp.Body) + wantedPerms, err = permsFromJSON(l, permSub.PermissionType, resp.Body) // text/plain case gtsmodel.DomainPermSubContentTypePlain: - wantedPerms, err = s.permsFromPlain(l, permSub.PermissionType, resp.Body) + wantedPerms, err = permsFromPlain(l, permSub.PermissionType, resp.Body) } if err != nil { @@ -516,7 +516,7 @@ func (s *Subscriptions) processDomainPermission( return created, nil } -func (s *Subscriptions) permsFromCSV( +func permsFromCSV( l log.Entry, permType gtsmodel.DomainPermissionType, body io.ReadCloser, @@ -615,7 +615,7 @@ func (s *Subscriptions) permsFromCSV( return perms, nil } -func (s *Subscriptions) permsFromJSON( +func permsFromJSON( l log.Entry, permType gtsmodel.DomainPermissionType, body io.ReadCloser, @@ -675,7 +675,7 @@ func (s *Subscriptions) permsFromJSON( return perms, nil } -func (s *Subscriptions) permsFromPlain( +func permsFromPlain( l log.Entry, permType gtsmodel.DomainPermissionType, body io.ReadCloser,