Skip to content

Commit 81b072b

Browse files
committed
Remove unnecessary compare.
1 parent 6b5fba0 commit 81b072b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jsonld.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4714,8 +4714,7 @@ protected function _compactIri(
47144714
// the mapping matches the IRI)
47154715
$curie = $term . ':' . substr($iri, $definition->_id_length);
47164716
$is_usable_curie = (!property_exists($active_ctx->mappings, $curie) ||
4717-
($value === null && $active_ctx->mappings->{$curie} &&
4718-
$active_ctx->mappings->{$curie}->{'@id'} === $iri));
4717+
($value === null && $active_ctx->mappings->{$curie}->{'@id'} === $iri));
47194718

47204719
// select curie if it is shorter or the same length but lexicographically
47214720
// less than the current choice

0 commit comments

Comments
 (0)