Skip to content

Commit

Permalink
Use explicit type over var
Browse files Browse the repository at this point in the history
  • Loading branch information
devklick committed Aug 16, 2024
1 parent 3df26ff commit 264fb7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public int Current
{
get
{
if (transitions.TryPeek(out var current))
if (transitions.TryPeek(out int current))
{
return current;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net/Util/Automaton/Automaton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public virtual ISet<State> GetAcceptStates()
Queue<State> worklist = new Queue<State>(); // LUCENENET specific - Queue is much more performant than LinkedList
worklist.Enqueue(initial);
visited.Add(initial);
while (worklist.TryDequeue(out var s))
while (worklist.TryDequeue(out State s))
{
if (s.accept)
{
Expand Down

0 comments on commit 264fb7c

Please sign in to comment.