MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / IsNil

Method IsNil

cli/pkg/docker/compose/yml.go:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (c *DockerComposeYml) IsNil() bool {
48 return c.Version == "" && len(c.Services) == 0 && len(c.Volumes) == 0 && len(c.Networks) == 0 && len(c.Secrets) == 0
49}
50
51func (c *DockerComposeYml) IsNotNil() bool {
52 return !c.IsNil()

Callers 2

IsNotNilMethod · 0.95
ToYamlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected