Skip to content

Commit 404288b

Browse files
committed
Fixing a few more eslint issues
1 parent 98301cf commit 404288b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/Select2.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ export default class Select2 extends Component {
5050
return (
5151
<select multiple={this.props.multiple}>
5252
{this.props.data.map((item, k) => {
53-
if(typeof item === 'string' || ((!!item && typeof item === 'object') && Object.prototype.toString.call(item) === '[object String]')) {
53+
if (typeof item === 'string' ||
54+
((!!item && typeof item === 'object') && Object.prototype.toString.call(item) === '[object String]')) {
5455
return (<option key={'option-' + k}>{item}</option>);
5556
}
56-
else {
57-
return (<option key={'option-' + k} value={item.id}>{item.text}</option>);
58-
}
57+
return (<option key={'option-' + k} value={item.id}>{item.text}</option>);
5958
})}
6059
</select>
6160
);

0 commit comments

Comments
 (0)