Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
improve comments in psyched_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 13, 2012
1 parent 15fe70b commit 405edfe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/bundler/psyched_yaml.rb
Expand Up @@ -4,20 +4,20 @@
rescue Gem::LoadError
end if defined?(Gem)

# Psych from stdlib if Syck isn't loaded
# Psych from stdlib, but only if Syck isn't loaded
begin
require 'psych'
rescue LoadError
end unless defined?(Syck)

# Psych might NOT EXIST AT ALL, so use the Yaml
require 'yaml'
# Psych might NOT EXIST AT ALL, so fall back on yaml
require 'yaml' unless defined?(YAML)

module Bundler
# Now we need a single unified Yaml syntax error
if defined?(Psych::SyntaxError)
# now we need a unified Yaml syntax error
if defined?(Psych::SyntaxError) # Psych
YamlSyntaxError = Psych::SyntaxError
else
else # Syck just raises an ArgmuentError
YamlSyntaxError = ArgumentError
end
end

0 comments on commit 405edfe

Please sign in to comment.