Skip to content

Commit

Permalink
Impose 'no-nested-ternary'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKVal committed Aug 29, 2015
1 parent faccb48 commit 631f547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"key-spacing": 0,
"no-eq-null": 0,
"no-else-return": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-this-before-super": 2,
"no-throw-literal": 0,
Expand Down
7 changes: 2 additions & 5 deletions src/CollapsibleMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ const CollapsibleMixin = {
},

getInitialState(){
let defaultExpanded = this.props.defaultExpanded != null ?
this.props.defaultExpanded :
this.props.expanded != null ?
this.props.expanded :
false;
const defaultExpanded = this.props.defaultExpanded != null ?
this.props.defaultExpanded : !!this.props.expanded;

return {
expanded: defaultExpanded,
Expand Down

0 comments on commit 631f547

Please sign in to comment.