fix(core): update
This commit is contained in:
parent
e7933cd7f4
commit
dd5a009d0f
@ -1,7 +1,4 @@
|
|||||||
import * as plugins from './lik.plugins';
|
export * from './lik.fastmap';
|
||||||
|
|
||||||
// import modules
|
|
||||||
|
|
||||||
export * from './lik.interestmap';
|
export * from './lik.interestmap';
|
||||||
export * from './lik.limitedarray';
|
export * from './lik.limitedarray';
|
||||||
export * from './lik.looptracker';
|
export * from './lik.looptracker';
|
||||||
|
@ -106,8 +106,8 @@ export class InterestMap<DTInterestId, DTInterestFullfillment> {
|
|||||||
*/
|
*/
|
||||||
public findInterest(objectArg: DTInterestId): Interest<DTInterestId, DTInterestFullfillment> {
|
public findInterest(objectArg: DTInterestId): Interest<DTInterestId, DTInterestFullfillment> {
|
||||||
const comparableString = this.comparisonFunc(objectArg);
|
const comparableString = this.comparisonFunc(objectArg);
|
||||||
const interest = this.interestObjectMap.find(interest => {
|
const interest = this.interestObjectMap.find(interestArg => {
|
||||||
return interest.comparisonString === comparableString;
|
return interestArg.comparisonString === comparableString;
|
||||||
});
|
});
|
||||||
return interest; // if an interest is found, the interest is returned, otherwise interest is null
|
return interest; // if an interest is found, the interest is returned, otherwise interest is null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user