diff --git a/lib/asset_sync/config.rb b/lib/asset_sync/config.rb index 018588ed..00f93439 100644 --- a/lib/asset_sync/config.rb +++ b/lib/asset_sync/config.rb @@ -110,11 +110,9 @@ def yml_exists? end def yml - begin - @yml ||= YAML.load(ERB.new(IO.read(yml_path)).result)[Rails.env] || {} - rescue Psych::SyntaxError - @yml = {} - end + @yml ||= YAML.load(ERB.new(IO.read(yml_path)).result)[Rails.env] || {} + rescue Psych::SyntaxError + @yml = {} end def yml_path