From f6ea4a47538ddc9dac452630e2a357ad1d75cb07 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sat, 1 Feb 2025 21:26:32 -0500 Subject: [PATCH] gofmt --- pkg/rest/share.go | 13 ++++++------- pkg/shares/store.go | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pkg/rest/share.go b/pkg/rest/share.go index ce1d704..2a6633e 100644 --- a/pkg/rest/share.go +++ b/pkg/rest/share.go @@ -34,12 +34,12 @@ const ( // shareHandlers returns a ShareHandlers map from the api. func (s *api) shareHandlers() ShareHandlers { return ShareHandlers{ - ShareRequestCall: s.calls.shareCallRoute, - ShareRequestCallInfo: respondShareHandler(s.calls.getCallInfo), - ShareRequestCallDL: s.calls.shareCallDLRoute, - ShareRequestIncident: respondShareHandler(s.incidents.getIncident), - ShareRequestIncidentM3U: s.incidents.getCallsM3U, - ShareRequestTalkgroups: s.tgs.getTGsShareRoute, + ShareRequestCall: s.calls.shareCallRoute, + ShareRequestCallInfo: respondShareHandler(s.calls.getCallInfo), + ShareRequestCallDL: s.calls.shareCallDLRoute, + ShareRequestIncident: respondShareHandler(s.incidents.getIncident), + ShareRequestIncidentM3U: s.incidents.getCallsM3U, + ShareRequestTalkgroups: s.tgs.getTGsShareRoute, } } @@ -106,7 +106,6 @@ func respondShareHandler(ie EntityFunc) ShareHandlerFunc { } } - func newShareAPI(baseURL *url.URL, shnd ShareHandlers) *shareAPI { return &shareAPI{ baseURL: baseURL, diff --git a/pkg/shares/store.go b/pkg/shares/store.go index cf4e0d6..11e7e2f 100644 --- a/pkg/shares/store.go +++ b/pkg/shares/store.go @@ -85,7 +85,7 @@ func (s *postgresStore) Delete(ctx context.Context, id string) error { return err } - _, err = rbac.Check(ctx, sh, rbac.WithActions(entities.ActionDelete)) + _, err = rbac.Check(ctx, sh, rbac.WithActions(entities.ActionDelete)) if err != nil { return err }