Fixed Rubocop styling issues
This commit is contained in:
parent
e5925d073e
commit
bed29940ef
|
@ -62,7 +62,7 @@ class Note < ActiveRecord::Base
|
|||
|
||||
scope :with_associations, -> do
|
||||
includes(:author, :noteable, :updated_by,
|
||||
project: [:project_members, {group: [:group_members]}])
|
||||
project: [:project_members, { group: [:group_members] }])
|
||||
end
|
||||
|
||||
serialize :st_diff
|
||||
|
|
|
@ -9,10 +9,10 @@ if Rails.env.development? and RUBY_ENGINE == 'ruby' and ENV['ENABLE_LINEPROF']
|
|||
class Sample < Rack::Lineprof::Sample.superclass
|
||||
def format(*)
|
||||
formatted = if level == CONTEXT
|
||||
sprintf " | % 3i %s", line, code
|
||||
else
|
||||
sprintf "% 8.1fms %5i | % 3i %s", ms, calls, line, code
|
||||
end
|
||||
sprintf " | % 3i %s", line, code
|
||||
else
|
||||
sprintf "% 8.1fms %5i | % 3i %s", ms, calls, line, code
|
||||
end
|
||||
|
||||
case level
|
||||
when CRITICAL
|
||||
|
|
Loading…
Reference in New Issue