Code Analysis ReferenceAnalyzers[deprecated] RCS1040On this pageRCS1040: Remove empty 'else' clauseWARNINGThis analyzer is obsolete. Use RCS1259 instead.PropertiesPropertyValueDefault Severitydisabled by defaultMinimum language version-ExamplesExample #1diagnostic.csif (condition){ Foo();}else{}fix.csif (condition){ Foo();}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers