Skip to content

Commit 66e3194

Browse files
author
root
committed
Add spaces
1 parent 1fd8177 commit 66e3194

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: app/models/gitolite_public_key.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class GitolitePublicKey < ActiveRecord::Base
1919
belongs_to :user
2020
validates_uniqueness_of :title, :scope => :user_id
2121
validates_uniqueness_of :identifier, :scope => :user_id
22-
validates_presence_of :title, :key, :identifier, :key_type
22+
validates_presence_of :title, :key, :identifier, :key_type
2323

2424
has_many :deployment_credentials, :dependent => :destroy
25+
2526
def validate_associated_records_for_deployment_credentials() end
2627

2728
if Rails::VERSION::MAJOR >= 3 && Rails::VERSION::MINOR >= 1
@@ -97,7 +98,7 @@ def to_s ; title ; end
9798
@@myregular = /^redmine_(.*)_\d*_\d*(.pub)?$/
9899
def self.ident_to_user_token(identifier)
99100
result = @@myregular.match(identifier)
100-
(result!=nil) ? result[1] : nil
101+
(result != nil) ? result[1] : nil
101102
end
102103

103104
def self.user_to_user_token(user)

0 commit comments

Comments
 (0)