Skip to content

Commit e73c1b7

Browse files
committed
Be forgiving with casing of build mode environment variable
1 parent a75c827 commit e73c1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/autobuilder/Semmle.Autobuild.CSharp/CSharpAutobuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public CSharpAutobuildOptions(IBuildActions actions) : base(actions)
2727
{
2828
Buildless = actions.GetEnvironmentVariable(lgtmPrefix + "BUILDLESS").AsBool("buildless", false) ||
2929
actions.GetEnvironmentVariable(extractorOptionPrefix + "BUILDLESS").AsBool("buildless", false) ||
30-
actions.GetEnvironmentVariable(buildModeEnvironmentVariable) == "none";
30+
actions.GetEnvironmentVariable(buildModeEnvironmentVariable)?.ToLower() == "none";
3131
}
3232
}
3333

0 commit comments

Comments
 (0)