Skip to content

Commit

Permalink
Revert a few unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw committed Apr 7, 2021
1 parent 2279543 commit f2a9d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -977,6 +977,7 @@ internal void ForgetScriptException()
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}

private void Dispose(bool disposing)
Expand Down
Expand Up @@ -339,7 +339,7 @@ internal override void DoBegin()
if (_scriptBlock.HasBeginBlock)
{
RunClause(_runOptimizedCode ? _scriptBlock.BeginBlock : _scriptBlock.UnoptimizedBeginBlock,
AutomationNull.Value, _input);
AutomationNull.Value, _input);
}
}
finally
Expand Down Expand Up @@ -410,9 +410,7 @@ internal override void Complete()

if (_scriptBlock.HasEndBlock)
{
Action<FunctionContext> endBlock = _runOptimizedCode
? _scriptBlock.EndBlock
: _scriptBlock.UnoptimizedEndBlock;
var endBlock = _runOptimizedCode ? _scriptBlock.EndBlock : _scriptBlock.UnoptimizedEndBlock;

if (this.CommandRuntime.InputPipe.ExternalReader == null)
{
Expand Down

0 comments on commit f2a9d87

Please sign in to comment.