mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-01 12:13:59 -04:00
remove unnecessary parenthesis
This commit is contained in:
@@ -514,7 +514,7 @@ func assertRequiredParametersSet(c *Config, errs *packer.MultiError) {
|
||||
if isUseDeviceLogin(c) {
|
||||
c.useDeviceLogin = true
|
||||
} else {
|
||||
if (c.ClientID == "" && c.ClientSecret != "") || (c.ClientID != "" && c.ClientSecret == "") {
|
||||
if c.ClientID == "" && c.ClientSecret != "" || c.ClientID != "" && c.ClientSecret == "" {
|
||||
errs = packer.MultiErrorAppend(errs, fmt.Errorf("A client_id and client_secret must be specified together or not specified at all"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user