Fix more warnings
This commit is contained in:
parent
f69837902b
commit
d640275dfc
|
@ -88,11 +88,11 @@ defmodule JSON.LD.Decoder do
|
|||
|
||||
# TODO: This should not be dependent on Poison as a JSON parser in general,
|
||||
# but determine available JSON parsers and use one heuristically or by configuration
|
||||
def parse_json(content, opts \\ []) do
|
||||
def parse_json(content, _opts \\ []) do
|
||||
Poison.Parser.parse(content)
|
||||
end
|
||||
|
||||
def parse_json!(content, opts \\ []) do
|
||||
def parse_json!(content, _opts \\ []) do
|
||||
Poison.Parser.parse!(content)
|
||||
end
|
||||
|
||||
|
|
|
@ -53,11 +53,11 @@ defmodule JSON.LD.Utils do
|
|||
is_boolean(value), do: true
|
||||
def scalar?(_), do: false
|
||||
|
||||
def list?(%{"@list" => _}), do: true
|
||||
def list?(_), do: false
|
||||
def list?(%{"@list" => _}), do: true
|
||||
def list?(_), do: false
|
||||
def index?(%{"@index" => _}), do: true
|
||||
def index?(_), do: false
|
||||
def index?(_), do: false
|
||||
def value?(%{"@value" => _}), do: true
|
||||
def value?(_), do: false
|
||||
def value?(_), do: false
|
||||
|
||||
end
|
||||
|
|
|
@ -2,7 +2,6 @@ defmodule JSON.LD.IRIExpansionTest do
|
|||
use ExUnit.Case, async: false
|
||||
|
||||
import JSON.LD.IRIExpansion
|
||||
import RDF.Sigils
|
||||
|
||||
setup do
|
||||
context = JSON.LD.context(%{
|
||||
|
|
Loading…
Reference in a new issue