Remove duplicate not found error

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-11-21 16:59:57 +01:00
parent 5505886655
commit e5391760e6
2 changed files with 1 additions and 5 deletions

View File

@ -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 {

View File

@ -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