Skip to content

Commit

Permalink
Improved null check for missing label (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Lesches authored Aug 7, 2022
1 parent 2c54feb commit d95e603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function initLabel() {

// Choose label, creating it if necessary.
let label = preferredLabel ?? defaultLabel;
if (label === null) {
if (label == null) {
core.info("No label found. Creating default label.");
github.createLabel(utils.defaultLabel);
label = utils.defaultLabel;
Expand Down

0 comments on commit d95e603

Please sign in to comment.