manager/deallocator/deallocator.go
Method Deallocator.Run
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (deallocator *Deallocator) Run(ctx context.Context) error {
var (
allServices []*api.Service
allNetworks []*api.Network
)
Method Deallocator.Run
has 6 return statements (exceeds 4 allowed). Open
Open
func (deallocator *Deallocator) Run(ctx context.Context) error {
var (
allServices []*api.Service
allNetworks []*api.Network
)
Method Deallocator.processNetwork
has 5 return statements (exceeds 4 allowed). Open
Open
func (deallocator *Deallocator) processNetwork(ctx context.Context, tx store.Tx, network *api.Network, ignoreServiceID *string) (updated bool, err error) {
if !network.PendingDelete {
return
}