File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Source/VisualPairCoding/VisualPairCoding.AvaloniaUI Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ private async void ChooseAnotherPairAndStartNewTurn()
109109 _currentParticipant = 0 ;
110110 }
111111
112- ChooseRandomNavigatorFromListWithout ( _pairCodingSession . Participants [ _currentParticipant ] ) ;
112+ ChooseRandomNavigatorFromListWithout ( ) ;
113113
114114 activeParticipnat . Text = _pairCodingSession . Participants [ _currentParticipant ] ;
115115
@@ -128,10 +128,10 @@ private async void ChooseAnotherPairAndStartNewTurn()
128128 Topmost = true ;
129129 }
130130
131- private void ChooseRandomNavigatorFromListWithout ( string currentDriver )
131+ private void ChooseRandomNavigatorFromListWithout ( )
132132 {
133133 var potentialNavigators =
134- _pairCodingSession . Participants . Where ( x => ! ( x == currentDriver ) ) . ToArray ( ) ;
134+ _pairCodingSession . Participants . ToArray ( ) ;
135135
136136 var randomEntry = potentialNavigators [ random . Next ( 0 , potentialNavigators . Length ) ] ;
137137 recommendedNavigator . Text = randomEntry ;
You can’t perform that action at this time.
0 commit comments