Skip to content

Commit

Permalink
Merge pull request #1078 from henry118/multierror
Browse files Browse the repository at this point in the history
use errors package in golang v20 to join multiple errors
  • Loading branch information
squeed authored Mar 27, 2024
2 parents 951d8d0 + a67dabb commit 83287db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
3 changes: 2 additions & 1 deletion libcni/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package libcni
import (
"context"
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
Expand Down Expand Up @@ -815,7 +816,7 @@ func (c *CNIConfig) GCNetworkList(ctx context.Context, list *NetworkConfigList,
}
}

return joinErrors(errs...)
return errors.Join(errs...)
}

func (c *CNIConfig) gcNetwork(ctx context.Context, net *NetworkConfig) error {
Expand Down
58 changes: 0 additions & 58 deletions libcni/multierror.go

This file was deleted.

0 comments on commit 83287db

Please sign in to comment.