Skip to content

Commit

Permalink
no need to check for nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and tenderlove committed Sep 30, 2010
1 parent 0495736 commit 33733d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def install(name_uri_or_plugin)
else
plugin = name_uri_or_plugin
end
unless plugin.nil?
if plugin
plugin.install
else
puts "Plugin not found: #{name_uri_or_plugin}"
Expand Down

0 comments on commit 33733d5

Please sign in to comment.