Remove redundant else
This commit is contained in:
parent
c85b683146
commit
61a7dbbe03
|
@ -37,11 +37,10 @@ class SerializerField {
|
||||||
} else if(this.type == "checkbox") {
|
} else if(this.type == "checkbox") {
|
||||||
let checked = this.field.checked;
|
let checked = this.field.checked;
|
||||||
if(this.field.hasAttribute("string")){
|
if(this.field.hasAttribute("string")){
|
||||||
if(checked) {
|
if(!checked) {
|
||||||
return this.field.value
|
|
||||||
} else {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
return this.field.value
|
||||||
}
|
}
|
||||||
return checked;
|
return checked;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue