mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Fix unnecessary conversion
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
@@ -287,7 +287,7 @@ func (c *ldcache) resolveSelected(selected func(string) bool) ([]string, []strin
|
||||
func (c *ldcache) resolve(target string) (string, error) {
|
||||
name := filepath.Join(c.root, target)
|
||||
|
||||
c.logger.Debugf("checking %v", string(name))
|
||||
c.logger.Debugf("checking %v", name)
|
||||
|
||||
link, err := symlinks.Resolve(name)
|
||||
if err != nil {
|
||||
|
||||
@@ -57,7 +57,7 @@ func (c binary) eval() (bool, error) {
|
||||
return false, err
|
||||
}
|
||||
|
||||
switch string(c.operator) {
|
||||
switch c.operator {
|
||||
case equal:
|
||||
return compare == 0, nil
|
||||
case notEqual:
|
||||
|
||||
Reference in New Issue
Block a user