Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix check to see if archive exists.
  • Loading branch information
cbeer committed Dec 22, 2012
1 parent b259a6c commit c53efdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icemelt/archive.rb
Expand Up @@ -29,7 +29,7 @@ def self.mint_archive_id(vault)

while id.nil?
id_to_mint = SecureRandom.urlsafe_base64(138)
id = id_to_mint unless vault.archive(id).exists?
id = id_to_mint unless vault.archive(id_to_mint).exists?
end

id
Expand Down

0 comments on commit c53efdd

Please sign in to comment.