emilygilberts opened a new pull request, #9177:
URL: https://github.com/apache/pouchdb/pull/9177

   did some ES6 refactoring:
   
   - converted functions `updatePurgeSeq, saveKeyValues, createTask, 
getRecentPurges` to `async/await`  to replace promise chains 
   
   - refactored postProcessAttatchments` to accept the resolved result (`res`) 
directly, wich enables to remove the `.then()` on the call
   
   - removed unneccessary promise wrappers around calls of:
   - `postProcessAttatchments` (is now invoked directly with the resolved 
result - instead of with `.then()` chaining) 
   -  `queryPromised` (the async function already returns a promise)
   
   - replaced the use of `fin` (final promise factory function) with 
`try/finally` block
   - removed the last `var`
   
   
   note: 
   currently repeadedly writing out the `defaultsto` functionality, will take 
care of it next :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to