lib/inch/language/elixir/provider/reader/object.rb in inch-0.5.0.rc5 vs lib/inch/language/elixir/provider/reader/object.rb in inch-0.5.0.rc6

- old
+ new

@@ -1,9 +1,9 @@ -require "inch/language/elixir/provider/reader/object/base" -require "inch/language/elixir/provider/reader/object/function_object" -require "inch/language/elixir/provider/reader/object/module_object" -require "inch/language/elixir/provider/reader/object/type_object" +require 'inch/language/elixir/provider/reader/object/base' +require 'inch/language/elixir/provider/reader/object/function_object' +require 'inch/language/elixir/provider/reader/object/module_object' +require 'inch/language/elixir/provider/reader/object/type_object' module Inch module Language module Elixir module Provider @@ -20,10 +20,10 @@ # # @param json_object [Hash] # @return [Provider::JSDoc::Object] def for(json_object) @cache ||= {} - if proxy_object = @cache[cache_key(json_object)] + if (proxy_object = @cache[cache_key(json_object)]) proxy_object else @cache[cache_key(json_object)] = class_for(json_object).new(json_object) end