lib/evil/client/resolver/format.rb in evil-client-3.0.2 vs lib/evil/client/resolver/format.rb in evil-client-3.0.3
- old
+ new
@@ -13,9 +13,10 @@
def __call__
super do
value = instance_exec(&__blocks__.last)&.to_sym if __blocks__.any?
value = :json if value.to_s == ""
raise __invalid_error__(value) unless LIST.include? value
+
value
end
end
def __invalid_error__(value)