Skip to content

Commit

Permalink
removed unneeded boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Sep 1, 2020
1 parent 4459c58 commit 5fdc561
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export class LibraryNotificationAction implements ActionByType<typeof ACTION_LIB
};

public isCompatible = async ({ embeddable }: LibraryNotificationActionContext) => {
return Boolean(
return (
embeddable.getInput()?.viewMode !== ViewMode.VIEW &&
isReferenceOrValueEmbeddable(embeddable) &&
embeddable.inputIsRefType(embeddable.getInput())
isReferenceOrValueEmbeddable(embeddable) &&
embeddable.inputIsRefType(embeddable.getInput())
);
};

Expand Down

0 comments on commit 5fdc561

Please sign in to comment.