Skip to content

Commit

Permalink
fixup: comment, lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <[email protected]>
  • Loading branch information
toddbaert committed Aug 17, 2023
1 parent 68aec64 commit e8bf655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions packages/shared/src/events/event-utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ProviderStatus } from "../provider";
import { ProviderEvents } from "./events";
import { ProviderStatus } from '../provider';
import { ProviderEvents } from './events';

const eventStatusMap = {
[ProviderStatus.READY]: ProviderEvents.Ready,
Expand All @@ -9,12 +9,12 @@ const eventStatusMap = {
};

/**
* Returns true if the provider's status matches the event.
* Returns true if the provider's status corresponds to the event.
* If the provider's status is not defined, it matches READY.
*
* @param event
* @param status
* @returns boolean indicating if the provider status matches the event.
* @param event event to match
* @param status status of provider
* @returns boolean indicating if the provider status corresponds to the event.
*/
export const statusMatchesEvent = (event: ProviderEvents, status?: ProviderStatus): boolean => {
return (!status && event === ProviderEvents.Ready) || eventStatusMap[status!] === event;
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/open-feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export abstract class OpenFeatureCommonAPI<P extends CommonProvider = CommonProv
}

const oldProvider = this.getProviderForClient(clientName);
const providerName = provider.metadata.name
const providerName = provider.metadata.name;

// ignore no-ops
if (oldProvider === provider) {
Expand Down

0 comments on commit e8bf655

Please sign in to comment.