Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jul 5, 2018
1 parent cb618fd commit fc90999
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/api-helper/goal/SdmGoalImplementationMapperImpl.ts
Expand Up @@ -19,7 +19,7 @@ import { SdmGoal } from "../../api/goal/SdmGoal";
import { IsolatedGoalLauncher } from "../../api/goal/support/IsolatedGoalLauncher";
import {
GoalFulfillment,
GoalFullfillmentCallback,
GoalFulfillmentCallback,
GoalImplementation,
GoalSideEffect,
SdmGoalImplementationMapper,
Expand All @@ -33,7 +33,7 @@ export class SdmGoalImplementationMapperImpl implements SdmGoalImplementationMap

private readonly implementations: GoalImplementation[] = [];
private readonly sideEffects: GoalSideEffect[] = [];
private readonly callbacks: GoalFullfillmentCallback[] = [];
private readonly callbacks: GoalFulfillmentCallback[] = [];

constructor(private readonly goalLauncher: IsolatedGoalLauncher) {
}
Expand Down Expand Up @@ -62,7 +62,7 @@ export class SdmGoalImplementationMapperImpl implements SdmGoalImplementationMap
return this;
}

public addFullfillmentCallback(callback: GoalFullfillmentCallback): this {
public addFulfillmentCallback(callback: GoalFulfillmentCallback): this {
this.callbacks.push(callback);
return this;
}
Expand All @@ -85,7 +85,7 @@ export class SdmGoalImplementationMapperImpl implements SdmGoalImplementationMap
return undefined;
}

public findFullfillmentCallbackForGoal(g: SdmGoal): GoalFullfillmentCallback[] {
public findFulfillmentCallbackForGoal(g: SdmGoal): GoalFulfillmentCallback[] {
return this.callbacks.filter(c =>
c.goal.name === g.name &&
// This slice is required because environment is suffixed with /
Expand Down
6 changes: 3 additions & 3 deletions src/api/goal/support/SdmGoalImplementationMapper.ts
Expand Up @@ -52,7 +52,7 @@ export function isSideEffect(f: GoalFulfillment): f is GoalSideEffect {
*
* This is useful to add goal specific information to the data field.
*/
export interface GoalFullfillmentCallback {
export interface GoalFulfillmentCallback {
goal: Goal;
callback: (goal: SdmGoal, context: RepoContext) => Promise<SdmGoal>;
}
Expand All @@ -64,14 +64,14 @@ export interface SdmGoalImplementationMapper {

addSideEffect(sideEffect: GoalSideEffect): this;

addFullfillmentCallback(callback: GoalFullfillmentCallback): this;
addFulfillmentCallback(callback: GoalFulfillmentCallback): this;

findImplementationBySdmGoal(goal: SdmGoal): GoalImplementation;

getIsolatedGoalLauncher(): IsolatedGoalLauncher;

findFulfillmentByPush(goal: Goal, inv: PushListenerInvocation): Promise<GoalFulfillment | undefined>;

findFullfillmentCallbackForGoal(g: SdmGoal): GoalFullfillmentCallback[];
findFulfillmentCallbackForGoal(g: SdmGoal): GoalFulfillmentCallback[];

}

0 comments on commit fc90999

Please sign in to comment.