Skip to content

Commit 4723eb3

Browse files
authored
Remove unused StringWriter from GenerateToolSettingsFile Task (#38378)
1 parent 0a32bb7 commit 4723eb3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/GenerateToolsSettingsFile.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ public class GenerateToolsSettingsFile : TaskBase
2121

2222
protected override void ExecuteCore()
2323
{
24-
using (StringWriter writer = new StringWriter())
25-
{
26-
GenerateDocument(EntryPointRelativePath, CommandName).Save(ToolsSettingsFilePath);
27-
}
24+
GenerateDocument(EntryPointRelativePath, CommandName).Save(ToolsSettingsFilePath);
2825
}
2926

3027
internal static XDocument GenerateDocument(string entryPointRelativePath, string commandName)

0 commit comments

Comments
 (0)