Skip to content

Commit dada58a

Browse files
committed
Remove unnecessary compare.
1 parent 0ad46f8 commit dada58a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/jsonld.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5578,8 +5578,7 @@ function _compactIri(activeCtx, iri, value, relativeTo, reverse) {
55785578
// the mapping matches the IRI)
55795579
var curie = term + ':' + iri.substr(definition['@id'].length);
55805580
var isUsableCurie = (!(curie in activeCtx.mappings) ||
5581-
(value === null && activeCtx.mappings[curie] &&
5582-
activeCtx.mappings[curie]['@id'] === iri));
5581+
(value === null && activeCtx.mappings[curie]['@id'] === iri));
55835582

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

0 commit comments

Comments
 (0)