Skip to content

Commit

Permalink
Remove duplicated header
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor committed Mar 11, 2020
1 parent e40cae4 commit 80d3457
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/promises.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ personFetcher.fetch('John');

## Migrating from callbacks to promises

Migrating from callbacks to promises
------------------------------------

The `result` parameter of the fulfilled promise value is equivalent to the first parameter in [`execute`](/api-client-library/javascript/reference/referencedocs#gapiclientRequestexecute)'s callback. To update your code to use promises, change your code as shown in the before and after examples below.

The following example shows using a callback:
Expand All @@ -249,4 +246,4 @@ gapi.client.request({
}).then(function(resp) {
processResponse(resp.result);
});
```
```

0 comments on commit 80d3457

Please sign in to comment.