gofmt
This commit is contained in:
parent
40ca650895
commit
f6ea4a4753
2 changed files with 7 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue