Simplify repo list color check
This commit is contained in:
parent
89886eeaf8
commit
aff26cbcfc
1 changed files with 1 additions and 3 deletions
|
|
@ -173,9 +173,7 @@ func listRun(opts *ListOptions) error {
|
|||
info := repoInfo(repo)
|
||||
infoColor := cs.Gray
|
||||
|
||||
if (repo.Visibility != "" &&
|
||||
repo.Visibility != "PUBLIC") ||
|
||||
repo.IsPrivate {
|
||||
if repo.IsPrivate {
|
||||
infoColor = cs.Yellow
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue