cni: remove duplicate error check

Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
v0.8
Miguel Ángel Jimeno 2020-08-23 21:51:01 +02:00
parent 4484f91957
commit 6e1d460d4c
No known key found for this signature in database
GPG Key ID: 2734E5F931FE739D
1 changed files with 0 additions and 4 deletions

View File

@ -42,10 +42,6 @@ func New(opt Opt) (network.Provider, error) {
return nil, err
}
if err != nil {
return nil, err
}
cp := &cniProvider{CNI: cniHandle, root: opt.Root}
if err := cp.initNetwork(); err != nil {
return nil, err