mirror of https://github.com/docker/compose.git
Fix linter
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
6fc8eefb1b
commit
fea0cf8c82
|
@ -804,7 +804,7 @@ func getContainerCreateOptions(p *types.Project, s types.ServiceConfig, number i
|
||||||
StopTimeout: toSeconds(s.StopGracePeriod),
|
StopTimeout: toSeconds(s.StopGracePeriod),
|
||||||
}
|
}
|
||||||
|
|
||||||
mountOptions, err := buildContainerMountOptions(p, s, inherit)
|
mountOptions, err := buildContainerMountOptions(s, inherit)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, nil, err
|
return nil, nil, nil, err
|
||||||
}
|
}
|
||||||
|
@ -851,7 +851,7 @@ func buildContainerBindingOptions(s types.ServiceConfig) nat.PortMap {
|
||||||
return bindings
|
return bindings
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildContainerMountOptions(p *types.Project, s types.ServiceConfig, inherit *moby.Container) ([]mount.Mount, error) {
|
func buildContainerMountOptions(s types.ServiceConfig, inherit *moby.Container) ([]mount.Mount, error) {
|
||||||
mounts := []mount.Mount{}
|
mounts := []mount.Mount{}
|
||||||
var inherited []string
|
var inherited []string
|
||||||
if inherit != nil {
|
if inherit != nil {
|
||||||
|
|
Loading…
Reference in New Issue