Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SCedricThomas committed Apr 26, 2024
1 parent 8c68b28 commit 5b8bb6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions domains/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ func List(ctx context.Context, app string) error {
domainName += " (*)"
}
row := []string{domainName}
if !domain.SSL {
switch {
case !domain.SSL:
row = append(row, "-")
} else if domain.LetsEncrypt {
case domain.LetsEncrypt:
letsencryptStatus, ok := letsencryptStatusString[string(domain.LetsEncryptStatus)]
if !ok {
letsencryptStatus = string(domain.LetsEncryptStatus)
}
row = append(row, fmt.Sprintf("Let's Encrypt: %s", letsencryptStatus))
} else {
row = append(row, "Let's Encrypt: "+letsencryptStatus)
default:
row = append(row, fmt.Sprintf("Valid until %v", domain.Validity))
}
t.Append(row)
Expand Down

0 comments on commit 5b8bb6c

Please sign in to comment.