Skip to content

Commit bd2ddf4

Browse files
committedJun 20, 2023
Reverse equals direction in Literal
This ensures that we use the equals function of our implementations, to guarantee that the correct implementation is used.
1 parent d99248c commit bd2ddf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/Literal.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export class Literal implements RDF.Literal {
3232

3333
public equals(other?: RDF.Term | null): boolean {
3434
return !!other && other.termType === 'Literal' && other.value === this.value &&
35-
other.language === this.language && other.datatype.equals(this.datatype);
35+
other.language === this.language && this.datatype.equals(other.datatype);
3636
}
3737
}

0 commit comments

Comments
 (0)
Please sign in to comment.