Fix wrong parenthesis

This commit is contained in:
Galorhallen 2022-01-07 22:55:31 +01:00
parent 98f9693ec1
commit 89284bf1c4

View File

@ -81,8 +81,7 @@ func (c *Config) String() string {
if typeField.Name != "PIHolePassword" && typeField.Name != "PIHoleApiToken" { if typeField.Name != "PIHolePassword" && typeField.Name != "PIHoleApiToken" {
buffer[i] = fmt.Sprintf("%s=%v", typeField.Name, valueField.Interface()) buffer[i] = fmt.Sprintf("%s=%v", typeField.Name, valueField.Interface())
} else if valueField.Len() > 0 { } else if valueField.Len() > 0 {
buffer[i] = fmt.Sprintf("%s=%s", typeField.Name, "*****") buffer[i] = fmt.Sprintf("%s=%s", typeField.Name, "*****")
}
} }
} }