Skip to content

Commit

Permalink
Cleanup Console.WriteLine() (dotnet#28687)
Browse files Browse the repository at this point in the history
* cleanup

* cleanup
  • Loading branch information
MarcoRossignoli authored and danmoseley committed Apr 1, 2018
1 parent f6a0db6 commit dfd9930
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ public void OnXsltMessageEncountered(string message)
XsltMessageEncounteredEventHandler onMessage = (_argList != null) ? _argList.xsltMessageEncountered : null;

if (onMessage != null)
onMessage(this, new XmlILQueryEventArgs(message));
else
Console.WriteLine(message);
onMessage(this, new XmlILQueryEventArgs(message));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ internal override void Execute(Processor processor, ActionFrame frame)

case ProcessingChildren:
TextOnlyOutput recOutput = processor.PopOutput() as TextOnlyOutput;
Debug.Assert(recOutput != null);
Console.WriteLine(recOutput.Writer.ToString());
Debug.Assert(recOutput != null);

if (_Terminate)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public override tagVARIATION_STATUS Execute()
res = (tagVARIATION_STATUS)HandleException(e);
}
catch (Exception e)
{
Console.WriteLine(e);
{
res = (tagVARIATION_STATUS)HandleException(e);
}

Expand Down

0 comments on commit dfd9930

Please sign in to comment.