Skip to content

Commit e5f61c9

Browse files
committed
test: add in default mode for unsupported flows
1 parent a82913c commit e5f61c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/rules/UnsafeRunningContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class UnsafeRunningContext extends RuleCommon implements core.IRuleDefini
2626

2727
public execute(flow: core.Flow): core.RuleResult {
2828
const hasRunInMode = "runInMode" in flow.xmldata;
29-
const runInMode: string = flow.xmldata?.runInMode;
29+
const runInMode: string = hasRunInMode ? flow.xmldata.runInMode : undefined;
3030
const riskyMode: string = "SystemModeWithoutSharing";
3131

3232
const results: core.ResultDetails[] = [];

0 commit comments

Comments
 (0)