Permalink
Browse files

readme - fix code style on examples

  • Loading branch information...
1 parent b0350d9 commit 783869b45ce59bb675e355d92a866c54e7ebf01d @sindresorhus sindresorhus committed May 1, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.md
View
@@ -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'
});
```

0 comments on commit 783869b

Please sign in to comment.