diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-10-31 01:47:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-31 01:47:35 -0400 |
commit | a8ebd48559bea8893aa299f9e27758da0807ef24 (patch) | |
tree | b0ef2612159498f9cb9d540fb4982b8d664ca714 /actionview | |
parent | 2240d4439910232ff6ad906edc03bed9bbe2001a (diff) | |
parent | c40b4428e6d3885a8adc0ceba3aeac7599c14879 (diff) | |
download | rails-a8ebd48559bea8893aa299f9e27758da0807ef24.tar.gz rails-a8ebd48559bea8893aa299f9e27758da0807ef24.tar.bz2 rails-a8ebd48559bea8893aa299f9e27758da0807ef24.zip |
Merge pull request #31004 from shuheiktgw/remove_unnecessary_returns
Remove redundant return statements
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/text_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index 3044a2c0ef..84d38aa416 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -422,7 +422,7 @@ module ActionView def to_s value = @values[@index].to_s @index = next_index - return value + value end private @@ -446,7 +446,7 @@ module ActionView # uses an instance variable of ActionView::Base. def get_cycle(name) @_cycles = Hash.new unless defined?(@_cycles) - return @_cycles[name] + @_cycles[name] end def set_cycle(name, cycle_object) |