Skip to content

Commit

Permalink
Merge pull request balena-io-modules#328 from balena-io-modules/fix-r…
Browse files Browse the repository at this point in the history
…eadme-example

Update example in readme
  • Loading branch information
zvin authored Mar 20, 2019
2 parents 6f21ef4 + a13aff5 commit ce38910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ Examples (the output will vary depending on your machine):
```js
const drivelist = require('drivelist');

drivelist.list((error, drives) => {
if (error) {
throw error;
}

console.log(drives);
const drives = await drivelist.list();
console.log(drives);
});
```

Expand Down
8 changes: 2 additions & 6 deletions doc/README.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,8 @@ Examples (the output will vary depending on your machine):
```js
const drivelist = require('drivelist');

drivelist.list((error, drives) => {
if (error) {
throw error;
}

console.log(drives);
const drives = await drivelist.list();
console.log(drives);
});
```

Expand Down

0 comments on commit ce38910

Please sign in to comment.