mirror of
https://github.com/balena-io/etcher.git
synced 2025-11-09 10:28:32 +00:00
Remove remaining Promise.then
Change-type: patch
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user