dotcloud/docker

View on GitHub
volume/service/service.go

Summary

Maintainability
A
45 mins
Test Coverage

Method VolumesService.Prune has 7 return statements (exceeds 4 allowed).
Open

func (s *VolumesService) Prune(ctx context.Context, filter filters.Args) (*volumetypes.PruneReport, error) {
    if !s.pruneRunning.CompareAndSwap(false, true) {
        return nil, errdefs.Conflict(errors.New("a prune operation is already running"))
    }
    defer s.pruneRunning.Store(false)
Severity: Major
Found in volume/service/service.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status