Skip to content

Commit 2c09766

Browse files
authored
Merge pull request #80 from ifad/chore/remove-redundant-returns-in-generated-code
Remove redundant returns in generated code
2 parents 01ada31 + 2bfee5d commit 2c09766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/hawk/model/association.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def #{entities}
244244
245245
@_#{entities} = self.class.model_class_for('#{klass}').where(params)
246246
#{"@_#{entities} = @_#{entities}.from(#{from.inspect})" if from}
247-
return @_#{entities}
247+
@_#{entities}
248248
end
249249
RUBY
250250
},
@@ -278,7 +278,7 @@ def #{entity}!
278278
end
279279
}
280280
281-
return @_#{entity}
281+
@_#{entity}
282282
end
283283
284284
def #{entity}

0 commit comments

Comments
 (0)