Skip to content

Commit

Permalink
Remove unused StringWriter from GenerateToolSettingsFile Task (#38378)
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel authored Feb 5, 2024
1 parent 0a32bb7 commit 4723eb3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ public class GenerateToolsSettingsFile : TaskBase

protected override void ExecuteCore()
{
using (StringWriter writer = new StringWriter())
{
GenerateDocument(EntryPointRelativePath, CommandName).Save(ToolsSettingsFilePath);
}
GenerateDocument(EntryPointRelativePath, CommandName).Save(ToolsSettingsFilePath);
}

internal static XDocument GenerateDocument(string entryPointRelativePath, string commandName)
Expand Down

0 comments on commit 4723eb3

Please sign in to comment.