mirror of
https://github.com/github/codeql-action.git
synced 2026-05-02 03:40:10 +00:00
Simplify writeDiffRangeDataExtensionPack interface
This commit is contained in:
Generated
+3
-12
@@ -110784,15 +110784,9 @@ async function setupDiffInformedQueryRun(logger) {
|
||||
diffRanges,
|
||||
checkoutPath
|
||||
);
|
||||
if (packDir === void 0) {
|
||||
logger.warning(
|
||||
"Cannot create diff range extension pack for diff-informed queries; reverting to performing full analysis."
|
||||
);
|
||||
} else {
|
||||
logger.info(
|
||||
`Successfully created diff range extension pack at ${packDir}.`
|
||||
);
|
||||
}
|
||||
logger.info(
|
||||
`Successfully created diff range extension pack at ${packDir}.`
|
||||
);
|
||||
return packDir;
|
||||
}
|
||||
);
|
||||
@@ -110817,9 +110811,6 @@ extensions:
|
||||
return header + data;
|
||||
}
|
||||
function writeDiffRangeDataExtensionPack(logger, ranges, checkoutPath) {
|
||||
if (ranges === void 0) {
|
||||
return void 0;
|
||||
}
|
||||
if (ranges.length === 0) {
|
||||
ranges = [{ path: "", startLine: 0, endLine: 0 }];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user