Skip to content
Browse files

remove unnecessary else statement

  • Loading branch information...
1 parent 75f03ec commit 7554e5cdf49bbc337ebd7cc68c5dd459c6b296af @nashby nashby committed Apr 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/test_case.rb
View
6 actionpack/lib/action_controller/test_case.rb
@@ -27,13 +27,13 @@ def setup_subscriptions
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

0 comments on commit 7554e5c

Please sign in to comment.
Something went wrong with that request. Please try again.