mirror of
https://github.com/containers/skopeo.git
synced 2025-09-06 17:20:57 +00:00
fix(deps): update module github.com/containers/storage to v1.45.0
Signed-off-by: Renovate Bot <bot@renovateapp.com>
This commit is contained in:
4
vendor/github.com/containers/storage/idset.go
generated
vendored
4
vendor/github.com/containers/storage/idset.go
generated
vendored
@@ -1,11 +1,11 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/containers/storage/pkg/idtools"
|
||||
"github.com/containers/storage/types"
|
||||
"github.com/google/go-intervals/intervalset"
|
||||
)
|
||||
|
||||
@@ -116,7 +116,7 @@ func (s *idSet) findAvailable(n int) (*idSet, error) {
|
||||
n -= i.length()
|
||||
}
|
||||
if n > 0 {
|
||||
return nil, errors.New("could not find enough available IDs")
|
||||
return nil, types.ErrNoAvailableIDs
|
||||
}
|
||||
return &idSet{set: intervalset.NewImmutableSet(intervals)}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user