fix another edge case

This commit is contained in:
Simon Engledew 2020-12-04 15:18:22 +00:00
parent 1dc40ba165
commit 18c6a7d6d1
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
6 changed files with 38 additions and 8 deletions

9
lib/actions-util.js generated
View file

@ -132,10 +132,13 @@ function branchesToArray(branches) {
if (typeof branches === "string") {
return [branches];
}
if (!branches || branches.length === 0) {
return "**";
if (Array.isArray(branches)) {
if (branches.length === 0) {
return "**";
}
return branches;
}
return branches;
return "**";
}
var MissingTriggers;
(function (MissingTriggers) {