Skip to content

Commit edc86ce

Browse files
Revert change to Recorder.invocationTimestamp.
1 parent 1aed3b3 commit edc86ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Moq/ActionObserver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ sealed class Recorder : IInterceptor
242242
readonly MatcherObserver matcherObserver;
243243
int creationTimestamp;
244244
Invocation? invocation;
245-
int? invocationTimestamp;
245+
int invocationTimestamp;
246246
object? returnValue;
247247

248248
public Recorder(MatcherObserver matcherObserver)
@@ -260,7 +260,7 @@ public IEnumerable<Match> Matches
260260
get
261261
{
262262
Debug.Assert(this.invocationTimestamp != default);
263-
return this.matcherObserver.GetMatchesBetween(this.creationTimestamp, this.invocationTimestamp!.Value);
263+
return this.matcherObserver.GetMatchesBetween(this.creationTimestamp, this.invocationTimestamp);
264264
}
265265
}
266266

0 commit comments

Comments
 (0)