mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-08 03:57:26 +00:00
prettify rem extra catch block
This commit is contained in:
parent
f291e7ca9d
commit
3dfea70b3f
2 changed files with 30 additions and 14 deletions
22
dist/index.js
vendored
22
dist/index.js
vendored
|
|
@ -331,12 +331,15 @@ try {
|
|||
"-Z"
|
||||
],
|
||||
options
|
||||
).catch((err)=>{
|
||||
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||
)
|
||||
.catch(err => {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`
|
||||
);
|
||||
})
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
})
|
||||
});
|
||||
} else {
|
||||
exec
|
||||
.exec(
|
||||
|
|
@ -353,7 +356,8 @@ try {
|
|||
`${yml}`
|
||||
],
|
||||
options
|
||||
).then(() => {
|
||||
)
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
});
|
||||
}
|
||||
|
|
@ -373,8 +377,11 @@ try {
|
|||
"-Z"
|
||||
],
|
||||
options
|
||||
).catch((err)=>{
|
||||
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||
)
|
||||
.catch(err => {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`
|
||||
);
|
||||
})
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
|
|
@ -385,7 +392,8 @@ try {
|
|||
"bash",
|
||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||
options
|
||||
).then(() => {
|
||||
)
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
22
index.js
22
index.js
|
|
@ -68,12 +68,15 @@ try {
|
|||
"-Z"
|
||||
],
|
||||
options
|
||||
).catch((err)=>{
|
||||
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||
)
|
||||
.catch(err => {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`
|
||||
);
|
||||
})
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
})
|
||||
});
|
||||
} else {
|
||||
exec
|
||||
.exec(
|
||||
|
|
@ -90,7 +93,8 @@ try {
|
|||
`${yml}`
|
||||
],
|
||||
options
|
||||
).then(() => {
|
||||
)
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
});
|
||||
}
|
||||
|
|
@ -110,8 +114,11 @@ try {
|
|||
"-Z"
|
||||
],
|
||||
options
|
||||
).catch((err)=>{
|
||||
core.setFailed(`Codecov failed with the following error ${err}`);
|
||||
)
|
||||
.catch(err => {
|
||||
core.setFailed(
|
||||
`Codecov failed with the following error: ${err.message}`
|
||||
);
|
||||
})
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
|
|
@ -122,7 +129,8 @@ try {
|
|||
"bash",
|
||||
["codecov.sh", "-n", `${name}`, "-F", `${flags}`, "-y", `${yml}`],
|
||||
options
|
||||
).then(() => {
|
||||
)
|
||||
.then(() => {
|
||||
unlinkFile();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue