Fix unnecessary conversion

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-08-25 16:50:40 +02:00
parent dd2f218226
commit 73857eb8e3
7 changed files with 65 additions and 14 deletions

View File

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

View File

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