mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +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 | package lookup | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"errors" |  | ||||||
| 	"fmt" | 	"fmt" | ||||||
| 	"os" | 	"os" | ||||||
| 	"path/filepath" | 	"path/filepath" | ||||||
| @ -25,9 +24,6 @@ import ( | |||||||
| 	"github.com/NVIDIA/nvidia-container-toolkit/internal/logger" | 	"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
 | // 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.
 | // prefixes. The validity of a file is determined by a filter function.
 | ||||||
| type file struct { | type file struct { | ||||||
|  | |||||||
| @ -83,7 +83,7 @@ func (l ldcacheLocator) Locate(libname string) ([]string, error) { | |||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if len(paths64) == 0 { | 	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 | 	return paths64, nil | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user