Skip to content

Commit

Permalink
Apply suggestions to fix govet
Browse files Browse the repository at this point in the history
Co-authored-by: Didier Roche-Tolomelli <[email protected]>
  • Loading branch information
denisonbarbosa and didrocks authored Dec 2, 2024
1 parent b5781d7 commit d0f97f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/policies/privilege/privilege.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func polkitAdminIdentitiesFromRules(ctx context.Context, rulesDirPaths []string)
}
// If we get an error when reading the file, it's likely due to it being a directory.
// This case we can ignore and continue to the next file.
log.Debugf(ctx, gotext.Get("Ignoring %s: %v", path, err))
log.Debugf(ctx, gotext.Get("Ignoring %s: %v"), path, err)

Check failure on line 389 in internal/policies/privilege/privilege.go

View workflow job for this annotation

GitHub Actions / Code sanity

printf: github.com/leonelquinteros/gotext.Get format %s reads arg #1, but call has 0 args (govet)

Check failure on line 389 in internal/policies/privilege/privilege.go

View workflow job for this annotation

GitHub Actions / Tests

github.com/leonelquinteros/gotext.Get format %s reads arg #1, but call has 0 args
continue
}
rules := string(b)
Expand All @@ -402,7 +402,7 @@ func polkitAdminIdentitiesFromRules(ctx context.Context, rulesDirPaths []string)
continue
}

log.Debugf(ctx, gotext.Get("Using polkit admin identities from %q", path))
log.Debugf(ctx, gotext.Get("Using polkit admin identities from %q"), path)

Check failure on line 405 in internal/policies/privilege/privilege.go

View workflow job for this annotation

GitHub Actions / Code sanity

printf: github.com/leonelquinteros/gotext.Get format %q reads arg #1, but call has 0 args (govet)

Check failure on line 405 in internal/policies/privilege/privilege.go

View workflow job for this annotation

GitHub Actions / Tests

github.com/leonelquinteros/gotext.Get format %q reads arg #1, but call has 0 args
return strings.Join(userRegex.FindAllString(returnStmt, -1), ","), nil
}
}
Expand Down

0 comments on commit d0f97f8

Please sign in to comment.