From 81b072b4380298917185bc6e9d2fd7af9eca8b5f Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sun, 24 Apr 2016 01:17:09 -0400 Subject: [PATCH] Remove unnecessary compare. --- jsonld.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jsonld.php b/jsonld.php index 053d008..4f4c21e 100644 --- a/jsonld.php +++ b/jsonld.php @@ -4714,8 +4714,7 @@ class JsonLdProcessor { // the mapping matches the IRI) $curie = $term . ':' . substr($iri, $definition->_id_length); $is_usable_curie = (!property_exists($active_ctx->mappings, $curie) || - ($value === null && $active_ctx->mappings->{$curie} && - $active_ctx->mappings->{$curie}->{'@id'} === $iri)); + ($value === null && $active_ctx->mappings->{$curie}->{'@id'} === $iri)); // select curie if it is shorter or the same length but lexicographically // less than the current choice