Use guard clause instead of conditional

old
Tucker Connelly 2016-09-22 11:56:45 -07:00
parent 0fb83bfdda
commit d01ff6db7e
1 changed files with 9 additions and 9 deletions

View File

@ -85,16 +85,16 @@ const factory = (Checkbox) => {
{inputValue}
</div>
);
} else {
return (
<input
checked={checked}
onChange={this.handleInputChange.bind(null, index, key, inputType)}
type={inputType}
value={inputValue}
/>
);
}
return (
<input
checked={checked}
onChange={this.handleInputChange.bind(null, index, key, inputType)}
type={inputType}
value={inputValue}
/>
);
}
render () {