brave / vault

Brave personal data store vault.
https://brave.com
Mozilla Public License 2.0
19 stars 18 forks source link

Use an async wreck call. #19

Closed KevinGrandon closed 8 years ago

KevinGrandon commented 8 years ago

This helps flatten the indentation quite a bit as well as follows the pattern that we use in the other files. I couldn't find a way to leverage await with the wreck package out-of-the box, but I'll open an issue on their side.

Easier code diff: https://github.com/brave/vault/pull/19/files?w=1