aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
committerShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
commitc40b4428e6d3885a8adc0ceba3aeac7599c14879 (patch)
tree3e947346605a4032d95fc28b6b38da7c624c2e81 /actionview
parentbf6456e05395583809f4565844a8dc088431fce7 (diff)
downloadrails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.gz
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.bz2
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.zip
removed unnecessary returns
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/text_helper.rb4
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)