Remove unnecessary optional chaining

This commit is contained in:
Koen Vlaswinkel 2024-05-02 10:00:29 +02:00
parent 40f70f96b1
commit 757fcd3d21
3 changed files with 3 additions and 3 deletions

2
lib/upload-lib.js generated
View file

@ -88,7 +88,7 @@ function createRunKey(run) {
version: run.tool?.driver?.version,
semanticVersion: run.tool?.driver?.semanticVersion,
guid: run.tool?.driver?.guid,
automationId: run?.automationDetails?.id,
automationId: run.automationDetails?.id,
};
}
/**

File diff suppressed because one or more lines are too long

View file

@ -94,7 +94,7 @@ function createRunKey(run: SarifRun): SarifRunKey {
version: run.tool?.driver?.version,
semanticVersion: run.tool?.driver?.semanticVersion,
guid: run.tool?.driver?.guid,
automationId: run?.automationDetails?.id,
automationId: run.automationDetails?.id,
};
}