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.
|
// shareHandlers returns a ShareHandlers map from the api.
|
||||||
func (s *api) shareHandlers() ShareHandlers {
|
func (s *api) shareHandlers() ShareHandlers {
|
||||||
return ShareHandlers{
|
return ShareHandlers{
|
||||||
ShareRequestCall: s.calls.shareCallRoute,
|
ShareRequestCall: s.calls.shareCallRoute,
|
||||||
ShareRequestCallInfo: respondShareHandler(s.calls.getCallInfo),
|
ShareRequestCallInfo: respondShareHandler(s.calls.getCallInfo),
|
||||||
ShareRequestCallDL: s.calls.shareCallDLRoute,
|
ShareRequestCallDL: s.calls.shareCallDLRoute,
|
||||||
ShareRequestIncident: respondShareHandler(s.incidents.getIncident),
|
ShareRequestIncident: respondShareHandler(s.incidents.getIncident),
|
||||||
ShareRequestIncidentM3U: s.incidents.getCallsM3U,
|
ShareRequestIncidentM3U: s.incidents.getCallsM3U,
|
||||||
ShareRequestTalkgroups: s.tgs.getTGsShareRoute,
|
ShareRequestTalkgroups: s.tgs.getTGsShareRoute,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,6 @@ func respondShareHandler(ie EntityFunc) ShareHandlerFunc {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func newShareAPI(baseURL *url.URL, shnd ShareHandlers) *shareAPI {
|
func newShareAPI(baseURL *url.URL, shnd ShareHandlers) *shareAPI {
|
||||||
return &shareAPI{
|
return &shareAPI{
|
||||||
baseURL: baseURL,
|
baseURL: baseURL,
|
||||||
|
|
|
@ -85,7 +85,7 @@ func (s *postgresStore) Delete(ctx context.Context, id string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = rbac.Check(ctx, sh, rbac.WithActions(entities.ActionDelete))
|
_, err = rbac.Check(ctx, sh, rbac.WithActions(entities.ActionDelete))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue