Skip to content

Commit 8520e52

Browse files
committed
Update README.md
Removed non existent `sync` parameter from `contents` function
1 parent fb54ae3 commit 8520e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ Delete a repository
7878
repo.deleteRepo(function(err, res) {});
7979
```
8080

81-
Get contents at a particular path in a particular branch. Set sync to true to get contents via sync method.
81+
Get contents at a particular path in a particular branch.
8282

8383
```js
84-
repo.contents(branch, "path/to/dir", function(err, contents) {}, sync);
84+
repo.contents(branch, "path/to/dir", function(err, contents) {});
8585
```
8686

8787
Fork repository. This operation runs asynchronously. You may want to poll for `repo.contents` until the forked repo is ready.

0 commit comments

Comments
 (0)