simplify state check

master
Kent 'picat' Gruber 2018-07-05 22:24:22 -04:00
parent 5fb4635721
commit a6d10cbbcd
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ func Query(args ...interface{}) interface{} {
dnsName = strings.Split(dnsName, "*.")[1]
}
if state.Verbose == true {
if state.Color == true {
if state.Verbose {
if state.Color {
fmt.Printf("\n[%sCERTSPOTTER%s] %s", helper.Red, helper.Reset, dnsName)
} else {
fmt.Printf("\n[CERTSPOTTER] %s", dnsName)