Prefer map to filter

pull/310/head
Frostebite 2021-12-29 14:30:26 +00:00
parent c74b578fd1
commit 4c38ffd178
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -3465,7 +3465,7 @@ class Input {
else if (Input.getInput(`GITHUB_REF`)) {
return Input.getInput(`GITHUB_REF`)
.split('/')
.filter((x) => {
.map((x) => {
x = x[0].toUpperCase() + x.slice(1);
return x;
})

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -35,7 +35,7 @@ class Input {
} else if (Input.getInput(`GITHUB_REF`)) {
return Input.getInput(`GITHUB_REF`)
.split('/')
.filter((x) => {
.map((x) => {
x = x[0].toUpperCase() + x.slice(1);
return x;
})