Skip to content

Commit

Permalink
Merge pull request #28 from regisbsb/patch-1
Browse files Browse the repository at this point in the history
Update SingleRowEventRaisingEnumerator.cs
  • Loading branch information
regisbsb authored Jul 27, 2016
2 parents 78ec6a7 + 1a151f2 commit 5e43005
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class SingleRowEventRaisingEnumerator : IEnumerable<Row>, IEnumerator<Row
protected readonly IOperation operation;
private readonly IEnumerable<Row> inner;
private IEnumerator<Row> innerEnumerator;
private Row previous;

/// <summary>
/// Initializes a new instance of the <see cref="SingleRowEventRaisingEnumerator"/> class.
Expand Down Expand Up @@ -65,7 +64,6 @@ public virtual bool MoveNext()

if (result)
{
previous = innerEnumerator.Current;
operation.RaiseRowProcessed(Current);
}

Expand Down Expand Up @@ -106,7 +104,7 @@ object IEnumerator.Current
///<filterpriority>1</filterpriority>
IEnumerator<Row> IEnumerable<Row>.GetEnumerator()
{
Guard.Against(inner == null, "Null enuerator detected, are you trying to read from the first operation in the process?");
Guard.Against(inner == null, "Null enumerator detected, are you trying to read from the first operation in the process?");
innerEnumerator = inner.GetEnumerator();
return this;
}
Expand Down

0 comments on commit 5e43005

Please sign in to comment.