Skip to content

Commit 75872aa

Browse files
committed
Minor cleanup
1 parent 9614c62 commit 75872aa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Dotnet.Script.Core/Scaffolder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private void CreateLaunchConfiguration(string currentWorkingDirectory)
169169
if (template != launchFileContent)
170170
{
171171
File.WriteAllText(pathToLaunchFile, template);
172-
_scriptConsole.WriteHighlighted("...Use global tool [Updated]");
172+
_scriptConsole.WriteHighlighted("...Use global tool launch config [Updated]");
173173
}
174174
}
175175
else

src/Dotnet.Script.Tests/ScaffoldingTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ private static Scaffolder CreateTestScaffolder(string installLocation)
216216
var scriptEnvironment = (ScriptEnvironment)Activator.CreateInstance(typeof(ScriptEnvironment), nonPublic: true);
217217
var installLocationField = typeof(ScriptEnvironment).GetField("_installLocation", BindingFlags.NonPublic | BindingFlags.Instance);
218218
installLocationField.SetValue(scriptEnvironment, new Lazy<string>(() => installLocation));
219-
StringWriter output = new StringWriter();
220-
StringWriter error = new StringWriter();
221-
var scriptConsole = new ScriptConsole(output, StringReader.Null, error);
219+
var scriptConsole = new ScriptConsole(StringWriter.Null, StringReader.Null, StreamWriter.Null);
222220
var scaffolder = new Scaffolder(TestOutputHelper.CreateTestLogFactory(), scriptConsole, scriptEnvironment);
223221
return scaffolder;
224222
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy