Permalink
Browse files

clean up setup

  • Loading branch information...
1 parent b2139a9 commit e2e60c2e41fa3c943a9e8a681bddbafa88a713a7 @indirect indirect committed Jan 14, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/bundler.rb
View
@@ -93,14 +93,13 @@ def bin_path
end
def setup(*groups)
- return @setup if defined?(@setup) && @setup
-
if groups.empty?
# Load all groups, but only once
- @setup = load.setup
+ @setup ||= load.setup
else
+ @completed_groups ||= []
# Figure out which groups haven't been loaded yet
- unloaded = groups - (@completed_groups || [])
+ unloaded = groups - @completed_groups
# Record groups that are now loaded
@completed_groups = groups
# Load any groups that are not yet loaded

0 comments on commit e2e60c2

Please sign in to comment.