From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 13:44:15 +0000 (+0000) Subject: code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesArou... X-Git-Tag: 4.1.0~278 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8b6e805a793a0a792e7ed16747832dff2d2d3f3;p=redmine.git code cleanup: rubocop: fix Layout/AccessModifierIndentation and Layout/EmptyLinesAroundAccessModifier in app/controllers/timelog_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18825 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2931df7c8..4de369343 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -18,7 +18,6 @@ Bundler/OrderedGems: # SupportedStyles: outdent, indent Layout/AccessModifierIndentation: Exclude: - - 'app/controllers/timelog_controller.rb' - 'app/controllers/wiki_controller.rb' - 'app/models/role.rb' @@ -98,7 +97,6 @@ Layout/EmptyLines: Layout/EmptyLinesAroundAccessModifier: Exclude: - 'app/controllers/previews_controller.rb' - - 'app/controllers/timelog_controller.rb' - 'config/initializers/10-patches.rb' - 'lib/redmine/syntax_highlighting.rb' diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 257660adf..4c4e7df79 100644 --- a/app/controllers/timelog_controller.rb +++ b/app/controllers/timelog_controller.rb @@ -242,7 +242,8 @@ class TimelogController < ApplicationController end end -private + private + def find_time_entry @time_entry = TimeEntry.find(params[:id]) @project = @time_entry.project