Skip to content

Commit

Permalink
Simplifies logic
Browse files Browse the repository at this point in the history
  • Loading branch information
knod committed Nov 25, 2018
1 parent 6d9b042 commit f4e27a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/dev/LocalizationReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,7 @@ class LocalizationReport extends Component {
return results;
}

let pass = true;
if (filter !== `true`) {
pass = false;
}

let pass = filter === `true`;
return results.filter((result) => {
return result.pass === pass;
});
Expand Down

0 comments on commit f4e27a0

Please sign in to comment.