Skip to content

Commit

Permalink
doc(Transaction): fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
h2jorm committed Mar 14, 2019
1 parent fc825d4 commit cc7dd15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ Several methods are optional promisified.
- Client.setData
- Client.getACL
- Client.setACL
- Client.mkdirp
- Transaction.commit

All methods above will return a promise if they fail to receive a callback function as the last parameter.
Expand Down
2 changes: 1 addition & 1 deletion lib/Transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Transaction.prototype.remove = function (path, version) {
* Execute the transaction atomically.
*
* @method commit
* @param callback {[Function]} callback function.
* @param [callback] {Function} callback function.
* @returns {Promise} return promise if callback is not provided
*/
Transaction.prototype.commit = function (callback) {
Expand Down

0 comments on commit cc7dd15

Please sign in to comment.