cni: remove duplicate error check
Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>v0.8
parent
4484f91957
commit
6e1d460d4c
|
@ -42,10 +42,6 @@ func New(opt Opt) (network.Provider, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
cp := &cniProvider{CNI: cniHandle, root: opt.Root}
|
cp := &cniProvider{CNI: cniHandle, root: opt.Root}
|
||||||
if err := cp.initNetwork(); err != nil {
|
if err := cp.initNetwork(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue