Skip to content

Commit

Permalink
Arson::Config::LOADED_YAML defaults to nil instead of {}
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Shea <colin@evaryont.me>
  • Loading branch information
nogweii committed Jul 6, 2009
1 parent 5e7dba2 commit 05ea792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arson/config.rb
Expand Up @@ -6,7 +6,7 @@ module Config
# The location of the configuration file (hard coded for now)
FILE_PATH = File.expand_path(File.join("~", ".arson.yaml"))
# The loaded configuration
LOADED_YAML = File.exists?(FILE_PATH) ? open(FILE_PATH) {|f| YAML::load(f) } : {}
LOADED_YAML = File.exists?(FILE_PATH) ? open(FILE_PATH) {|f| YAML::load(f) } : nil
# Default configuration values
DEFAULTS = {"dir" => File.expand_path("~"), "pacman" => true, "color" => true, "single_download" => false}
# Merged values representing a combination of the user's choices
Expand Down

0 comments on commit 05ea792

Please sign in to comment.