mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Remove duplicate not found error
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
5505886655
commit
e5391760e6
@ -17,7 +17,6 @@
|
||||
package lookup
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@ -25,9 +24,6 @@ import (
|
||||
"github.com/NVIDIA/nvidia-container-toolkit/internal/logger"
|
||||
)
|
||||
|
||||
// ErrNotFound indicates that a specified pattern or file could not be found.
|
||||
var ErrNotFound = errors.New("not found")
|
||||
|
||||
// file can be used to locate file (or file-like elements) at a specified set of
|
||||
// prefixes. The validity of a file is determined by a filter function.
|
||||
type file struct {
|
||||
|
@ -83,7 +83,7 @@ func (l ldcacheLocator) Locate(libname string) ([]string, error) {
|
||||
}
|
||||
|
||||
if len(paths64) == 0 {
|
||||
return nil, fmt.Errorf("64-bit library %v: %w", libname, errNotFound)
|
||||
return nil, fmt.Errorf("64-bit library %v: %w", libname, ErrNotFound)
|
||||
}
|
||||
|
||||
return paths64, nil
|
||||
|
Loading…
Reference in New Issue
Block a user