fix another edge case
This commit is contained in:
parent
1dc40ba165
commit
18c6a7d6d1
6 changed files with 38 additions and 8 deletions
9
lib/actions-util.js
generated
9
lib/actions-util.js
generated
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue