api/server/router/volume/volume_routes.go
Method volumeRouter.putVolumesUpdate
has 5 return statements (exceeds 4 allowed). Open
Open
func (v *volumeRouter) putVolumesUpdate(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
if !v.cluster.IsManager() {
return errdefs.Unavailable(errors.New("volume update only valid for cluster volumes, but swarm is unavailable"))
}