File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -113,20 +113,16 @@ func (c *ProjectConfig) extendConfig(o *ProjectConfig) *ProjectConfig {
113113 cfg .GitRepository = c .GitRepository
114114 }
115115
116- if ! c .ProtectionBypassForAutomation {
116+ if c .ProtectionBypassForAutomation {
117117 cfg .ProtectionBypassForAutomation = c .ProtectionBypassForAutomation
118118 }
119119
120120 if ! c .VercelAuthentication .ProtectProduction {
121121 cfg .VercelAuthentication .ProtectProduction = c .VercelAuthentication .ProtectProduction
122122 }
123123
124- if c .PasswordProtection .Password != "" {
125- cfg .PasswordProtection .Password = c .PasswordProtection .Password
126- }
127-
128- if ! c .PasswordProtection .ProtectProduction {
129- cfg .PasswordProtection .ProtectProduction = c .PasswordProtection .ProtectProduction
124+ if c .PasswordProtection .Password != "" || ! c .PasswordProtection .ProtectProduction {
125+ cfg .PasswordProtection = c .PasswordProtection
130126 }
131127
132128 if ! slices .EqualFunc (c .EnvironmentVariables , o .EnvironmentVariables , EqualEnvironmentVariables ) {
You can’t perform that action at this time.
0 commit comments