Skip to content

Commit

Permalink
remove boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
valeksiev committed Oct 8, 2024
1 parent 615e74a commit 6315235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callout.handlers/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export const baseHandler = async (
logger.info(`Generating documents for Callout (${documentId}) contributions`);
for (const contribution of callout.contributions || []) {
let docLike;
if (!!contribution.link) {
if (contribution.link) {
docLike = contribution.link;
} else if (!!contribution.post) {
} else if (contribution.post) {
docLike = contribution.post;
}
if (docLike) {
Expand Down

0 comments on commit 6315235

Please sign in to comment.