Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.catch(error => {
if ((isErrnoException(error) && error.code === 'ENOENT') || error.code === 'EISDIR') {
return null; // file is deleted or a directory. This can be a valid result of the git command
} else {
// Rethrow
throw error;
}
});
}
.catch(error => {
if (
(isErrnoException(error) && error.code === 'ENOENT') ||
error.code === 'EISDIR'
) {
return null; // file is deleted or a directory. This can be a valid result of the git command
} else {
// Rethrow
throw error;
}
});
}
private innerProcessIsCrashed(error: Error) {
return isErrnoException(error) && (error.code === BROKEN_PIPE_ERROR_CODE || error.code === IPC_CHANNEL_CLOSED_ERROR_CODE);
}
private innerProcessIsCrashed(error: Error) {
return isErrnoException(error) && (error.code === BROKEN_PIPE_ERROR_CODE || error.code === IPC_CHANNEL_CLOSED_ERROR_CODE);
}