Remove redundant else
This commit is contained in:
parent
c85b683146
commit
61a7dbbe03
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user