refs #6274 refactor ifIsEmptyText
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-12-07 15:45:07 +01:00
parent c62771b6c7
commit 56da86d1d5
1 changed files with 2 additions and 6 deletions

View File

@ -225,12 +225,8 @@ function ifIsEmptyImage(value) {
}
}
function ifIsEmptyText(value) {
if (!value) {
return 0;
} else {
return value;
}
function ifIsEmptyText(value = 0) {
return value;
}
function cerrar(){