mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Pre- increment and decrement where possible
This commit is contained in:
@@ -326,7 +326,7 @@ REPLCompletions::CookedResult REPLCompletions::getNextStem() {
|
||||
if (CookedResults.empty())
|
||||
return {};
|
||||
|
||||
CurrentCompletionIdx++;
|
||||
++CurrentCompletionIdx;
|
||||
if (CurrentCompletionIdx >= CookedResults.size())
|
||||
CurrentCompletionIdx = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user