export function fetchDiffStatsSafely(gateway, projectPath, mergeRequestNumber, logger) {
    try {
        return gateway.fetchDiffStats(projectPath, mergeRequestNumber);
    }
    catch (error) {
        logger.warn({ projectPath, mergeRequestNumber, error }, 'Failed to fetch diff stats');
        return null;
    }
}
//# sourceMappingURL=fetchDiffStatsSafely.js.map