Drive-by comment fixes

This commit is contained in:
Henry Mercer
2026-03-11 19:33:57 +00:00
parent 19544bb9b4
commit 556dd79c4b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1002,11 +1002,11 @@ async function isTrapCachingEnabled(
features: FeatureEnablement,
overlayDatabaseMode: OverlayDatabaseMode,
): Promise<boolean> {
// If the workflow specified something always respect that
// If the workflow specified something, always respect that.
const trapCaching = getOptionalInput("trap-caching");
if (trapCaching !== undefined) return trapCaching === "true";
// On self-hosted runners which may have slow network access, disable TRAP caching by default
// On self-hosted runners which may have slow network access, disable TRAP caching by default.
if (!isHostedRunner()) return false;
// If overlay analysis is enabled, then disable TRAP caching since overlay analysis supersedes it.
@@ -1018,7 +1018,7 @@ async function isTrapCachingEnabled(
return false;
}
// Otherwise, enable TRAP caching
// Otherwise, enable TRAP caching.
return true;
}
+1 -1
View File
@@ -80,7 +80,7 @@ export enum Feature {
OverlayAnalysisSkipResourceChecks = "overlay_analysis_skip_resource_checks",
/** Controls whether the Actions cache is checked for overlay build outcomes. */
OverlayAnalysisStatusCheck = "overlay_analysis_status_check",
/** Controls whether overlay build failures on are stored in the Actions cache. */
/** Controls whether overlay build failures on the default branch are stored in the Actions cache. */
OverlayAnalysisStatusSave = "overlay_analysis_status_save",
PythonDefaultIsToNotExtractStdlib = "python_default_is_to_not_extract_stdlib",
QaTelemetryEnabled = "qa_telemetry_enabled",