From 2bfee5d8a18dcae83cbc3807710dec9a306e6c76 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 8 Sep 2025 12:51:31 +0200 Subject: [PATCH] Remove redundant returns in generated code --- lib/hawk/model/association.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hawk/model/association.rb b/lib/hawk/model/association.rb index 07c28fe..b8bcd05 100644 --- a/lib/hawk/model/association.rb +++ b/lib/hawk/model/association.rb @@ -244,7 +244,7 @@ def #{entities} @_#{entities} = self.class.model_class_for('#{klass}').where(params) #{"@_#{entities} = @_#{entities}.from(#{from.inspect})" if from} - return @_#{entities} + @_#{entities} end RUBY }, @@ -278,7 +278,7 @@ def #{entity}! end } - return @_#{entity} + @_#{entity} end def #{entity}