Skip to content

Commit

Permalink
Removed unnecessary item.label check and added TODOs to README
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanMaRuiz committed Sep 2, 2019
1 parent c91e58a commit 7fb2604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ $ npm install psi

## Usage

<!-- TODO Update this section with v5+ information -->

```js
const psi = require('psi');

Expand Down Expand Up @@ -114,8 +116,6 @@ $ psi --help
--format Output format: cli|json|tap
--locale Locale results should be generated in
--threshold Threshold score to pass the PageSpeed test
--optimized Get the URL of optimized resources
--download Download optimized resources
Example
$ psi https://addyosmani.com --strategy=mobile
Expand Down
2 changes: 1 addition & 1 deletion lib/formats/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const setTitle = sectionName => (chalk.gray.underline(sectionName) + '\n');
const renderInfo = str => (chalk.white(str) + '\n');

const renderOverview = item => {
const color = (item.label === 'Performance' || item.label === 'Usability') ? utils.scoreColor(item.value) : chalk.cyan;
const color = (item.label === 'Performance') ? utils.scoreColor(item.value) : chalk.cyan;
return item.label + ':' + utils.buffer(item.label, 14) + color(item.value);
};

Expand Down

0 comments on commit 7fb2604

Please sign in to comment.