Remove redundant else

This commit is contained in:
Crow Crowcrow 2017-09-16 21:41:53 +02:00
parent c85b683146
commit 61a7dbbe03

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 {