We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82913c commit e5f61c9Copy full SHA for e5f61c9
src/main/rules/UnsafeRunningContext.ts
@@ -26,7 +26,7 @@ export class UnsafeRunningContext extends RuleCommon implements core.IRuleDefini
26
27
public execute(flow: core.Flow): core.RuleResult {
28
const hasRunInMode = "runInMode" in flow.xmldata;
29
- const runInMode: string = flow.xmldata?.runInMode;
+ const runInMode: string = hasRunInMode ? flow.xmldata.runInMode : undefined;
30
const riskyMode: string = "SystemModeWithoutSharing";
31
32
const results: core.ResultDetails[] = [];
0 commit comments