Skip to content

Commit

Permalink
Merge pull request #6001 from nashby/patch-2
Browse files Browse the repository at this point in the history
remove unnecessary else statement
  • Loading branch information
jeremy committed Apr 26, 2012
2 parents 75f03ec + 7554e5c commit 14d1e55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_controller/test_case.rb
Expand Up @@ -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

Expand Down

0 comments on commit 14d1e55

Please sign in to comment.