diff --git a/src/auth.ts b/src/auth.ts index 2e6605df..1001b2cf 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -49,9 +49,12 @@ async function write(directory: string, settings: string) { try { return fs.writeFileSync(location, settings, options); } catch (e) { - if (e.code == "EEXIST") { + if (e.code == 'EEXIST') { console.warn(`overwriting existing file ${location}`); - return fs.writeFileSync(location, settings, {encoding: 'utf-8', flag: 'w'}); + return fs.writeFileSync(location, settings, { + encoding: 'utf-8', + flag: 'w' + }); } throw e; }