Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme - fix code style on examples

  • Loading branch information...
commit 783869b45ce59bb675e355d92a866c54e7ebf01d 1 parent b0350d9
@sindresorhus sindresorhus authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
6 README.md
@@ -240,12 +240,14 @@ var bower = require('bower');
bower.commands
.install(paths, options)
.on('end', function (data) {
- data && console.log(data);
+ if (data) {
+ console.log(data);
+ }
});
bower.commands
.search('jquery', {})
- .on('packages', function(packages) {
+ .on('packages', function (packages) {
// `packages` is a list of packages returned by searching for 'jquery'
});
```
Please sign in to comment.
Something went wrong with that request. Please try again.