chore: delete the unnecessary functions called
This commit is contained in:
1 parent
94657735fb
commit
a1def17750
2 files changed
-9
No files matched your search
@@ -17,7 +17,6 @@ import {
|
||||
import { getEnvironment, getEnvSetting, getSetting } from './db';
|
||||
import { sendEventNotification } from './notifications';
|
||||
import {
|
||||
detectHostDataDir,
|
||||
getHostDockerSocket,
|
||||
getHostDataDir,
|
||||
extractUidFromSocketPath,
|
||||
@@ -618,10 +617,6 @@ async function runScannerContainerCore(
|
||||
): Promise<string> {
|
||||
console.log(`[Scanner] Starting ${scannerType} scan for image: ${imageName}, envId: ${envId ?? 'local'}`);
|
||||
|
||||
// Ensure startup inspect caches are populated before we mirror Dockhand's own
|
||||
// Docker access settings into sibling sidecars.
|
||||
await detectHostDataDir().catch(() => null);
|
||||
|
||||
// Always use the base cache path — serial lock prevents concurrent conflicts
|
||||
const basePath = scannerType === 'grype' ? '/cache/grype' : '/cache/trivy';
|
||||
const dbPath = basePath;
|
||||
|
||||
Reference in new issue
Block a user