Skip to content

Commit bc43839

Browse files
trcaziercgun-odoo
andcommitted
[IMP] awesome_owl: replace redundant ternary operator with if
Co-authored-by: Cemal Faruk Güney <[email protected]>
1 parent a3e8aa9 commit bc43839

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

awesome_owl/static/src/counter/counter.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export class Counter extends Component {
1212
}
1313

1414
increment() {
15-
this.props.side_effect ? this.props.side_effect() : true;
15+
if (this.props.side_effect) {
16+
this.props.side_effect();
17+
}
1618
this.state.value++;
1719
}
1820
}

0 commit comments

Comments
 (0)