Skip to content

Commit

Permalink
return but shoudl still fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Clark committed Dec 5, 2019
1 parent 12896df commit 96236d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function write(directory: string, settings: string) {
const location = path.join(directory, SETTINGS_FILE);
console.log(`writing ${location} with options ${options}`);
try {
fs.writeFileSync(location, settings, options);
return fs.writeFileSync(location, settings, options);
} catch (e) {
if (e.code == fs.constants.O_EXCL) {
console.log(`overwriting existing file ${location}`);
Expand Down

0 comments on commit 96236d7

Please sign in to comment.