Loading src/auth.ts +5 −2 Changes for src/auth.ts: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
src/auth.ts +5 −2 Changes for src/auth.ts: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -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; } Loading