refs #6274 refactor ifIsEmptyText
gitea/worker-time-control/pipeline/head This commit looks good
Details
gitea/worker-time-control/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c62771b6c7
commit
56da86d1d5
|
@ -225,12 +225,8 @@ function ifIsEmptyImage(value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ifIsEmptyText(value) {
|
function ifIsEmptyText(value = 0) {
|
||||||
if (!value) {
|
return value;
|
||||||
return 0;
|
|
||||||
} else {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function cerrar(){
|
function cerrar(){
|
||||||
|
|
Loading…
Reference in New Issue