Commit bed29940 authored by Yorick Peterse's avatar Yorick Peterse

Fixed Rubocop styling issues

parent e5925d07
...@@ -62,7 +62,7 @@ class Note < ActiveRecord::Base ...@@ -62,7 +62,7 @@ class Note < ActiveRecord::Base
scope :with_associations, -> do scope :with_associations, -> do
includes(:author, :noteable, :updated_by, includes(:author, :noteable, :updated_by,
project: [:project_members, {group: [:group_members]}]) project: [:project_members, { group: [:group_members] }])
end end
serialize :st_diff serialize :st_diff
......
...@@ -9,10 +9,10 @@ if Rails.env.development? and RUBY_ENGINE == 'ruby' and ENV['ENABLE_LINEPROF'] ...@@ -9,10 +9,10 @@ if Rails.env.development? and RUBY_ENGINE == 'ruby' and ENV['ENABLE_LINEPROF']
class Sample < Rack::Lineprof::Sample.superclass class Sample < Rack::Lineprof::Sample.superclass
def format(*) def format(*)
formatted = if level == CONTEXT formatted = if level == CONTEXT
sprintf " | % 3i %s", line, code sprintf " | % 3i %s", line, code
else else
sprintf "% 8.1fms %5i | % 3i %s", ms, calls, line, code sprintf "% 8.1fms %5i | % 3i %s", ms, calls, line, code
end end
case level case level
when CRITICAL when CRITICAL
......
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