Fix outdated comment for loadSpec
loadSpec() is not support blank path now, remove relative comments. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
This commit is contained in:
parent
c8b20e7706
commit
198e2771ac
1
spec.go
1
spec.go
|
@ -224,7 +224,6 @@ func u32Ptr(i int64) *uint32 { u := uint32(i); return &u }
|
||||||
func fmPtr(i int64) *os.FileMode { fm := os.FileMode(i); return &fm }
|
func fmPtr(i int64) *os.FileMode { fm := os.FileMode(i); return &fm }
|
||||||
|
|
||||||
// loadSpec loads the specification from the provided path.
|
// loadSpec loads the specification from the provided path.
|
||||||
// If the path is empty then the default path will be "config.json"
|
|
||||||
func loadSpec(cPath string) (spec *specs.Spec, err error) {
|
func loadSpec(cPath string) (spec *specs.Spec, err error) {
|
||||||
cf, err := os.Open(cPath)
|
cf, err := os.Open(cPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue