Skip to content

Commit

Permalink
fix: add parens to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Nov 26, 2024
1 parent 70ed47b commit e8741ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/add-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export async function addIssue(context: Context<"issues.opened">) {
payload,
} = context;
const issue = payload.issue;
const markdown = payload.issue.body && payload.issue.title ? `${payload.issue.body} ${payload.issue.title}` : null;
const markdown = issue.body + " " + issue.title || null;
const authorId = issue.user?.id || -1;
const id = issue.node_id;
const isPrivate = payload.repository.private;
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/update-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function updateIssue(context: Context<"issues.edited">) {
} = context;
const id = payload.issue.node_id;
const isPrivate = payload.repository.private;
const markdown = payload.issue.body && payload.issue.title ? payload.issue.body + " " + payload.issue.title : null;
const markdown = payload.issue.body + " " + payload.issue.title || null;
const authorId = payload.issue.user?.id || -1;
// Fetch the previous issue and update it in the db
try {
Expand Down

0 comments on commit e8741ad

Please sign in to comment.