Remove unnecessary compare.

This commit is contained in:
Dave Longley 2016-04-24 01:17:09 -04:00
parent 6b5fba05e5
commit 81b072b438
1 changed files with 1 additions and 2 deletions

View File

@ -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