From 66cceac220aa8ccc07ae42d223eccc1e9a60a81b Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 21 Jan 2024 11:11:52 +0100 Subject: [PATCH] Fix white-space related offenses - Layout/MultilineMethodCallIndentation --- .rubocop_todo.yml | 7 ------- lib/hawk/model/association.rb | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 366e6b4..5a52118 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -32,13 +32,6 @@ Layout/MultilineMethodCallBraceLayout: Exclude: - 'lib/hawk/model/collection.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented, indented_relative_to_receiver -Layout/MultilineMethodCallIndentation: - Exclude: - - 'lib/hawk/model/association.rb' - # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperator: Exclude: diff --git a/lib/hawk/model/association.rb b/lib/hawk/model/association.rb index 6bac99c..6cc44f8 100644 --- a/lib/hawk/model/association.rb +++ b/lib/hawk/model/association.rb @@ -296,7 +296,7 @@ def #{entity} return unless (id = self.attributes.fetch(key.to_s, nil)) instance = self.class.model_class_for(klass). - find(id, clean_inherited_params(self.params, params)) + find(id, clean_inherited_params(self.params, params)) instance_variable_set(ivar, instance) end