Skip to content

Commit bc88d44

Browse files
committed
PR feedback: simplify DOTNET_CLI_UI_LANGUAGE env var usage
1 parent 0a1eaf9 commit bc88d44

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/FSharpLint.Client/FSharpLintToolLocator.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ let private startProcess (ps: ProcessStartInfo) : Result<Process, ProcessStartEr
5959
let private runToolListCmd (Folder workingDir: Folder) (globalFlag: bool) : Result<string list, DotNetToolListError> =
6060
let ps = ProcessStartInfo("dotnet")
6161
ps.WorkingDirectory <- workingDir
62-
63-
if ps.EnvironmentVariables.ContainsKey "DOTNET_CLI_UI_LANGUAGE" then
64-
ps.EnvironmentVariables.["DOTNET_CLI_UI_LANGUAGE"] <- "en-us"
65-
else
66-
ps.EnvironmentVariables.Add("DOTNET_CLI_UI_LANGUAGE", "en-us")
62+
ps.EnvironmentVariables.["DOTNET_CLI_UI_LANGUAGE"] <- "en-us" //ensure we have predictible output for parsing
6763

6864
let toolArguments =
6965
Option.ofObj (Environment.GetEnvironmentVariable "FSHARPLINT_SEARCH_PATH_OVERRIDE")

0 commit comments

Comments
 (0)