Rename const to avoid CodeQL error
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
parent
d8ff343d5c
commit
4aa7e75cd1
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ var secretFields = []string{
|
|||
"numSelectedRepos",
|
||||
}
|
||||
|
||||
const secretFieldNumSelectedRepos = "numSelectedRepos"
|
||||
const fieldNumSelectedRepos = "numSelectedRepos"
|
||||
|
||||
func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Command {
|
||||
opts := &ListOptions{
|
||||
|
|
@ -121,7 +121,7 @@ func listRun(opts *ListOptions) error {
|
|||
if opts.Exporter != nil {
|
||||
// Note that if there's an exporter set, then we don't mind the TTY mode
|
||||
// because we just have to populate the requested fields.
|
||||
showSelectedRepoInfo = slices.Contains(opts.Exporter.Fields(), secretFieldNumSelectedRepos)
|
||||
showSelectedRepoInfo = slices.Contains(opts.Exporter.Fields(), fieldNumSelectedRepos)
|
||||
}
|
||||
|
||||
var secrets []Secret
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue