Skip to content

Commit

Permalink
Remove redundant code and TODO comment in resetDefaultPolicy function
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzofenix committed Dec 15, 2024
1 parent ed74dbc commit 71830fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/autoscaler/api/publicapiserver/public_api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ func (h *PublicApiHandler) DetachScalingPolicy(w http.ResponseWriter, r *http.Re
}

func (h *PublicApiHandler) resetDefaultPolicy(w http.ResponseWriter, r *http.Request, logger lager.Logger, appId string) error {
// TODO this is a copy of part of the attach ... this should use a common function.
// brokered offering: check if there's a default policy that could apply
serviceInstance, err := h.bindingdb.GetServiceInstanceByAppId(appId)
if err != nil {
logger.Error("Failed to find service instance for app", err)
Expand Down

0 comments on commit 71830fd

Please sign in to comment.