Remove remaining Promise.then

Change-type: patch
This commit is contained in:
Alexis Svinartchouk
2020-01-15 17:12:27 +01:00
parent 6202393637
commit 2eda6601c0
2 changed files with 24 additions and 26 deletions

View File

@@ -58,11 +58,9 @@ export async function getConfig(configUrl: string): Promise<any> {
* @summary returns { path: String, cleanup: Function }
*
* @example
* tmpFileAsync()
* .then({ path, cleanup } => {
* console.log(path)
* cleanup()
* });
* const {path, cleanup } = await tmpFileAsync()
* console.log(path)
* cleanup()
*/
function tmpFileAsync(
options: tmp.FileOptions,