Skip to content

Commit

Permalink
chore: simplified mkdir vaultop
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Oct 11, 2024
1 parent d0d03fb commit 040e457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vaults/VaultOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ async function mkdir(
code: e.code,
reason: dirPath,
};
} else if (e.code === 'EEXIST') {
}
if (e.code === 'EEXIST') {
return {
type: 'error',
code: e.code,
reason: dirPath,
};
} else {
throw e;
}
throw e;
}
}

Expand Down

0 comments on commit 040e457

Please sign in to comment.