dotcloud/docker

View on GitHub
daemon/images/image_windows.go

Summary

Maintainability
A
35 mins
Test Coverage

Method ImageService.GetLayerFolders has 5 return statements (exceeds 4 allowed).
Open

func (i *ImageService) GetLayerFolders(img *image.Image, rwLayer layer.RWLayer, containerID string) ([]string, error) {
    folders := []string{}
    rd := len(img.RootFS.DiffIDs)
    for index := 1; index <= rd; index++ {
        // FIXME: why does this mutate the RootFS?
Severity: Major
Found in daemon/images/image_windows.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status