Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed May 21, 2024
1 parent 64c73bf commit e80a572
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/snaps-rpc-methods/src/restricted/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ export const notifyBuilder = Object.freeze({
* @returns The method implementation which returns `null` on success.
* @throws If the params are invalid.
*/
export function getImplementation({
showNativeNotification,
showInAppNotification,
isOnPhishingList,
maybeUpdatePhishingList,
}: NotifyMethodHooks,
export function getImplementation(
{
showNativeNotification,
showInAppNotification,
isOnPhishingList,
maybeUpdatePhishingList,
}: NotifyMethodHooks,
allowedProtocols: string[],
) {
return async function implementation(
Expand All @@ -135,7 +136,11 @@ export function getImplementation({

await maybeUpdatePhishingList();

validateTextLinks(validatedParams.message, isOnPhishingList, allowedProtocols);
validateTextLinks(
validatedParams.message,
isOnPhishingList,
allowedProtocols,
);

switch (validatedParams.type) {
case NotificationType.Native:
Expand Down

0 comments on commit e80a572

Please sign in to comment.