Simplify repo list color check

This commit is contained in:
Mislav Marohnić 2022-06-07 17:51:44 +02:00
parent 89886eeaf8
commit aff26cbcfc

View file

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