diff --git a/src/features/linter-provider.ts b/src/features/linter-provider.ts index 9bef7c08..c279a404 100644 --- a/src/features/linter-provider.ts +++ b/src/features/linter-provider.ts @@ -33,11 +33,9 @@ export default class FortranLintingProvider { * * see also: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html */ - const env = { - ...process.env, - LC_ALL: 'C' - }; - if (process.platform == 'win32') { + const env = process.env; + env.LC_ALL = 'C'; + if (process.platform === 'win32') { // Windows needs to know the path of other tools if (!env.Path.includes(path.dirname(command))) { env.Path = `${path.dirname(command)}${path.delimiter}${env.Path}`;