From 6e1fa53e2cf28da1640e3d3ed430633decbdd17f Mon Sep 17 00:00:00 2001 From: Bertocq Date: Fri, 16 Jun 2017 00:19:38 +0200 Subject: [PATCH] Fix Lint/DefEndAlignment rubocop issues and remove from rubocop_todo list --- .rubocop_todo.yml | 8 -------- app/models/officing/residence.rb | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d1844dde6..0a40bdf19 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,14 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 1 -# Cop supports --auto-correct. -# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect. -# SupportedStyles: start_of_line, def -Lint/DefEndAlignment: - Exclude: - - 'app/controllers/comments_controller.rb' - # Offense count: 1 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. diff --git a/app/models/officing/residence.rb b/app/models/officing/residence.rb index 539b557a5..92333cc80 100644 --- a/app/models/officing/residence.rb +++ b/app/models/officing/residence.rb @@ -62,7 +62,7 @@ class Officing::Residence document_type: document_type).first end - def residence_in_madrid + def residence_in_madrid return if errors.any? unless residency_valid?