mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
prefer logical AND over ternary (#13254)
This commit is contained in:
parent
e36e5aa5a2
commit
e0298dcc13
@ -116,7 +116,7 @@ export default class Checkbox extends React.Component<CheckboxProps, {}, {}> {
|
||||
className={checkboxClass}
|
||||
ref={this.saveCheckbox}
|
||||
/>
|
||||
{children !== undefined ? <span>{children}</span> : null}
|
||||
{children !== undefined && <span>{children}</span>}
|
||||
</label>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user