diff --git a/lib/json_ld.ex b/lib/json_ld.ex index 64b1bba..2a68623 100644 --- a/lib/json_ld.ex +++ b/lib/json_ld.ex @@ -101,11 +101,8 @@ defmodule JSON.LD do |> do_context(options) end - defp do_context(%{"@context" => _} = object, options), - do: Context.create(object, options) - - defp do_context(context, options), - do: Context.create(%{"@context" => stringify_keys(context)}, options) + defp do_context(%{"@context" => _} = object, options), do: Context.create(object, options) + defp do_context(context, options), do: Context.create(%{"@context" => context}, options) defp stringify_keys(map) when is_map(map) do Map.new(map, fn