diff --git a/Rules/UseCorrectCasing.cs b/Rules/UseCorrectCasing.cs index 7c0c20727..6936e0d67 100644 --- a/Rules/UseCorrectCasing.cs +++ b/Rules/UseCorrectCasing.cs @@ -32,11 +32,6 @@ public override IEnumerable AnalyzeScript(Ast ast, string file IEnumerable commandAsts = ast.FindAll(testAst => testAst is CommandAst, true); - bool isWindows = true; -#if CORECLR - isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); -#endif - // Iterates all CommandAsts and check the command name. foreach (CommandAst commandAst in commandAsts) {