Replace custom method with File.ReadAllText() in ScriptAnalysis.cs by amritanand-py · Pull Request #26060 · PowerShell/PowerShell
…ine\Modules\ScriptAnalysis.cs The ReadScript method was retrieving a SafeFileHandle from the FileStream but never using it. This line was unnecessary since proper disposal is already handled by the using blocks. Changes Removed redundant SafeFileHandle assignment.
added
the
CL-CodeCleanup
label
iSazonov
changed the title
Remove unused SafeFileHandle in PowerShell/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs
Replace custom method with File.ReadAllText() ScriptAnalysis.cs
iSazonov
changed the title
Replace custom method with File.ReadAllText() ScriptAnalysis.cs
Replace custom method with File.ReadAllText() in ScriptAnalysis.cs
iSazonov
added
CL-CodeCleanup
and removed CL-CodeCleanup
labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters