Skip to content

Commit

Permalink
fix: compare to null/undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Renato66 committed Oct 31, 2023
1 parent 2cbe083 commit b055c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function run() {
console.log('Issue undefined');
return;
}
if (issue.body === undefined) {
if (!issue.body) {
console.log('Issue body undefined');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function run() {
console.log('Issue undefined')
return
}
if (issue.body === undefined) {
if (!issue.body) {
console.log('Issue body undefined')
return
}
Expand Down

0 comments on commit b055c01

Please sign in to comment.