mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix equals NumberVersion
This commit is contained in:
parent
a4febe347b
commit
5efcdb45ff
@ -44,17 +44,11 @@ export default class VersionNumber {
|
||||
}
|
||||
|
||||
public equals<T>(o: T): boolean {
|
||||
if (o instanceof VersionNumber) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!(o instanceof VersionNumber)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const versionNumber: VersionNumber = o as VersionNumber;
|
||||
|
||||
return !(this.version ? this.version !== versionNumber.version : versionNumber.version);
|
||||
return this.version === versionNumber.version;
|
||||
}
|
||||
|
||||
private getTokinizer(): Array<string> {
|
||||
|
Loading…
Reference in New Issue
Block a user