diff --git a/frontend/frontend.go b/frontend/frontend.go index 0a64564cf..20cdb9868 100644 --- a/frontend/frontend.go +++ b/frontend/frontend.go @@ -180,7 +180,7 @@ func (f *Frontend) ArmResourceListByResourceGroup(writer http.ResponseWriter, re func (f *Frontend) ArmResourceRead(writer http.ResponseWriter, request *http.Request) { ctx := request.Context() logger := ctx.Value(ContextKeyLogger).(*slog.Logger) - versionedInterface, _ := ctx.Value(ContextKeyVersion).(api.Version) + versionedInterface := ctx.Value(ContextKeyVersion).(api.Version) logger.Info(fmt.Sprintf("%s: ArmResourceRead", versionedInterface)) // URL path is already lowercased by middleware. @@ -207,7 +207,7 @@ func (f *Frontend) ArmResourceRead(writer http.ResponseWriter, request *http.Req func (f *Frontend) ArmResourceCreateOrUpdate(writer http.ResponseWriter, request *http.Request) { ctx := request.Context() logger := ctx.Value(ContextKeyLogger).(*slog.Logger) - versionedInterface, _ := ctx.Value(ContextKeyVersion).(api.Version) + versionedInterface := ctx.Value(ContextKeyVersion).(api.Version) logger.Info(fmt.Sprintf("%s: ArmResourceCreateOrUpdate", versionedInterface)) @@ -252,7 +252,7 @@ func (f *Frontend) ArmResourcePatch(writer http.ResponseWriter, request *http.Re func (f *Frontend) ArmResourceDelete(writer http.ResponseWriter, request *http.Request) { ctx := request.Context() logger := ctx.Value(ContextKeyLogger).(*slog.Logger) - versionedInterface, _ := ctx.Value(ContextKeyVersion).(api.Version) + versionedInterface := ctx.Value(ContextKeyVersion).(api.Version) logger.Info(fmt.Sprintf("%s: ArmResourceDelete", versionedInterface)) // URL path is already lowercased by middleware.