Current section
Files
Jump to
Current section
Files
lib/regc/oci/descriptor/preference.ex
defmodule Regc.Oci.Descriptor.Preference do
@moduledoc false
@spec prefer_inline(map(), map()) :: map()
def prefer_inline(%{data: nil}, %{data: data} = candidate) when is_binary(data),
do: candidate
def prefer_inline(existing, _candidate), do: existing
end