Permalink
Browse files

Merge pull request #6001 from nashby/patch-2

remove unnecessary else statement
  • Loading branch information...
2 parents 75f03ec + 7554e5c commit 14d1e554d93619c5d57c5921d308a05257198393 @jeremy jeremy committed Apr 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 14d1e55

Please sign in to comment.