diff options
Diffstat (limited to 'app/models/concerns/mirror_authentication.rb')
-rw-r--r-- | app/models/concerns/mirror_authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/mirror_authentication.rb b/app/models/concerns/mirror_authentication.rb index 14c8be93ce0..e3bfeaf7f95 100644 --- a/app/models/concerns/mirror_authentication.rb +++ b/app/models/concerns/mirror_authentication.rb @@ -11,7 +11,7 @@ module MirrorAuthentication # We should generate a key even if there's no SSH URL present before_validation :generate_ssh_private_key!, if: -> { - regenerate_ssh_private_key || ( auth_method == 'ssh_public_key' && ssh_private_key.blank? ) + regenerate_ssh_private_key || (auth_method == 'ssh_public_key' && ssh_private_key.blank?) } credentials_field :auth_method, reader: false |