Skip to content

Commit 071027d

Browse files
meganemuraSamSaffron
authored andcommitted
Correct RuboCop offence (#403)
To avoid Layout/SpaceAroundOperators offence, added blank lines and spaces.
1 parent 0e1a115 commit 071027d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lib/mini_profiler/storage/memcache_store.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ class MemcacheStore < AbstractStore
1010
def initialize(args = nil)
1111
require 'dalli' unless defined? Dalli
1212
args ||= {}
13+
1314
@prefix = args[:prefix] || "MPMemcacheStore"
1415
@prefix += "-#{Rack::MiniProfiler::VERSION}"
16+
1517
@client = args[:client] || Dalli::Client.new
1618
@expires_in_seconds = args[:expires_in] || EXPIRES_IN_SECONDS
1719
end

lib/mini_profiler/storage/memory_store.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def initialize(args = nil)
5858
end
5959

6060
def initialize_locks
61-
@token_lock = Mutex.new
61+
@token_lock = Mutex.new
6262
@timer_struct_lock = Mutex.new
6363
@user_view_lock = Mutex.new
6464
@timer_struct_cache = {}

spec/lib/timer_struct/custom_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe Rack::MiniProfiler::TimerStruct::Custom do
44
before do
5-
@name = 'cool request'
5+
@name = 'cool request'
66
@page = Rack::MiniProfiler::TimerStruct::Page.new({})
77
@request = Rack::MiniProfiler::TimerStruct::Request.createRoot(@name, @page)
88
@custom = Rack::MiniProfiler::TimerStruct::Custom.new('a', 0.2, @page, @request)

0 commit comments

Comments
 (0)