Fixed Rubocop styling issues

This commit is contained in:
Yorick Peterse 2015-10-15 10:42:48 +02:00
parent e5925d073e
commit bed29940ef
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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