Commit 792da3ca authored by Ruben Davila's avatar Ruben Davila

Fixes for new Rubocop complains.

parent df601666
module Geo module Geo
class NotifyNodesService < BaseNotify class NotifyNodesService < BaseNotify
def initialize def initialize
@wiki_queue = Gitlab::Geo::UpdateQueue.new('updated_wikis') @wiki_queue = Gitlab::Geo::UpdateQueue.new('updated_wikis')
end end
......
...@@ -2,7 +2,7 @@ module Oauth2 ...@@ -2,7 +2,7 @@ module Oauth2
class LogoutTokenValidationService < ::BaseService class LogoutTokenValidationService < ::BaseService
attr_reader :status attr_reader :status
def initialize(user, params={}) def initialize(user, params = {})
@params = params @params = params
@current_user = user @current_user = user
end end
......
...@@ -123,6 +123,5 @@ module Projects ...@@ -123,6 +123,5 @@ module Projects
tags << name if local_tags[name].nil? tags << name if local_tags[name].nil?
end end
end end
end end
end end
...@@ -22,5 +22,4 @@ module GeoDynamicBackoff ...@@ -22,5 +22,4 @@ module GeoDynamicBackoff
count = count - 30 # we must start counting after 30 count = count - 30 # we must start counting after 30
(count**4) + 15 + (rand(30) * (count + 1)) (count**4) + 15 + (rand(30) * (count + 1))
end end
end end
...@@ -9,7 +9,7 @@ module EE ...@@ -9,7 +9,7 @@ module EE
adapter.group(cn) adapter.group(cn)
end end
def initialize(entry, adapter=nil) def initialize(entry, adapter = nil)
Rails.logger.debug { "Instantiating #{self.class.name} with LDIF:\n#{entry.to_ldif}" } Rails.logger.debug { "Instantiating #{self.class.name} with LDIF:\n#{entry.to_ldif}" }
@entry = entry @entry = entry
@adapter = adapter @adapter = adapter
......
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
end end
end end
def self.allowed?(user, options={}) def self.allowed?(user, options = {})
self.open(user) do |access| self.open(user) do |access|
# Whether user is allowed, or not, we should update # Whether user is allowed, or not, we should update
# permissions to keep things clean # permissions to keep things clean
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment