Skip to content

Commit

Permalink
Merge pull request #55 from Renato66/52-error
Browse files Browse the repository at this point in the history
fix: compare to null/undefined
  • Loading branch information
Renato66 authored Oct 31, 2023
2 parents a855782 + b055c01 commit bab46b6
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 bab46b6

Please sign in to comment.