lib/humidifier/config/mapping.rb in humidifier-4.1.1 vs lib/humidifier/config/mapping.rb in humidifier-4.2.0

- old
+ new

@@ -8,11 +8,11 @@ def initialize(opts = {}, &block) @clazz = Humidifier[normalized(opts[:to])] raise Error, "Invalid resource: #{opts[:to].inspect}" if @clazz.nil? if opts[:using] && block_given? - raise Error, 'Cannot specify :using and provide an anonymous mapper' + raise Error, "Cannot specify :using and provide an anonymous mapper" end @mapper = mapper_from(opts, &block) end @@ -31,10 +31,10 @@ Mapper.new end end def normalized(name) - name.start_with?('AWS') ? name : "AWS::#{name}" + name.start_with?("AWS") ? name : "AWS::#{name}" end end end end