Remove redundant else

This commit is contained in:
Crow Crowcrow 2017-09-16 21:41:53 +02:00
parent c85b683146
commit 61a7dbbe03
1 changed files with 2 additions and 3 deletions

View File

@ -37,11 +37,10 @@ class SerializerField {
} else if(this.type == "checkbox") {
let checked = this.field.checked;
if(this.field.hasAttribute("string")){
if(checked) {
return this.field.value
} else {
if(!checked) {
return null;
}
return this.field.value
}
return checked;
} else {