diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2012-04-26 20:46:37 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2012-04-26 20:48:38 +0300 |
commit | 7554e5cdf49bbc337ebd7cc68c5dd459c6b296af (patch) | |
tree | 4b2b5b56587f192c20df721583a22f259c60d3e3 | |
parent | 75f03eca753f1e835409a80db1f54f716ef48d18 (diff) | |
download | rails-7554e5cdf49bbc337ebd7cc68c5dd459c6b296af.tar.gz rails-7554e5cdf49bbc337ebd7cc68c5dd459c6b296af.tar.bz2 rails-7554e5cdf49bbc337ebd7cc68c5dd459c6b296af.zip |
remove unnecessary else statement
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index 55a9819316..66a4808e36 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -27,13 +27,13 @@ module ActionController path = payload[:virtual_path] next unless path partial = path =~ /^.*\/_[^\/]*$/ + if partial @partials[path] += 1 @partials[path.split("/").last] += 1 - @templates[path] += 1 - else - @templates[path] += 1 end + + @templates[path] += 1 end end |