1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

PR Feeback: Simplify statements

This commit is contained in:
Tim Daubenschütz 2015-09-17 13:52:51 +02:00
parent 32f38428f1
commit 297d30f21f

View File

@ -39,13 +39,13 @@ let PieceListFilterDisplay = React.createClass({
return {
key: item.key,
label: item.label,
value: filterBy[item.key] ? filterBy[item.key] : false
value: filterBy[item.key] || false
};
} else {
return {
key: item,
label: item.split('acl_')[1].replace(/_/g, ' '),
value: filterBy[item] ? filterBy[item] : false
value: filterBy[item] || false
};
}
})