mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Address dev runner snapshot review feedback
This commit is contained in:
parent
8f25ba6381
commit
dc58544832
2 changed files with 24 additions and 6 deletions
|
|
@ -9,7 +9,12 @@ const defaultFileSystem = {
|
|||
};
|
||||
|
||||
export function isMissingPathError(error) {
|
||||
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
||||
return (
|
||||
typeof error === "object" &&
|
||||
error !== null &&
|
||||
"code" in error &&
|
||||
(error.code === "ENOENT" || error.code === "ENOTDIR")
|
||||
);
|
||||
}
|
||||
|
||||
function toRelativePath(repoRoot, absolutePath) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue