Mark result of appendExtraQueryExclusions as Readonly to prevent further modification

This commit is contained in:
Michael B. Gale
2025-09-03 12:19:00 +01:00
parent e9fb72dd82
commit 7f81363b78
9 changed files with 31 additions and 30 deletions

6
lib/upload-lib.js generated
View File

@@ -89411,10 +89411,10 @@ async function getConfig(tempDir, logger) {
return JSON.parse(configString);
}
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
if (extraQueryExclusions.length === 0) {
return cliConfig;
}
const augmentedConfig = cloneObject(cliConfig);
if (extraQueryExclusions.length === 0) {
return augmentedConfig;
}
augmentedConfig["query-filters"] = [
// Ordering matters. If the first filter is an inclusion, it implicitly
// excludes all queries that are not included. If it is an exclusion,