Browse files

tiny refactoring

  • Loading branch information...
1 parent 6dc44ac commit e047bb3f13b01e102264bd63e544d243f5d8a083 @smerritt smerritt committed with ezmobius Dec 8, 2009
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/chef-deploy/git.rb
View
4 lib/chef-deploy/git.rb
@@ -31,9 +31,7 @@ def checkout(revision, destination)
args << "--depth #{depth}"
end
- execute = []
-
- execute << "rm -rf #{destination}"
+ execute = ["rm -rf #{destination}"]
if args.empty?
execute << "#{git} clone #{verbose} #{configuration[:repository]} #{destination}"

0 comments on commit e047bb3

Please sign in to comment.