Repair silly mistake
This commit is contained in:
parent
329cee7bd6
commit
b4d5334a1a
|
@ -181,14 +181,14 @@ export class FlexSet<V> implements Set<V> {
|
|||
get(v: V): {item: V} | null {
|
||||
const vs = this._key(v);
|
||||
if (this.items.has(vs)) {
|
||||
return {item: this.items[vs]};
|
||||
return {item: this.items.get(vs)};
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
add(v: V): this {
|
||||
this.items[this._key(v)] = v;
|
||||
this.items.set(this._key(v), v);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue