diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2019-05-10 00:35:30 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2019-05-10 00:35:30 -0700 |
commit | 47a974e0dd06a9a78ceb5aeb1fe3249845baab0b (patch) | |
tree | 83ce54c381a48a1c941662ef5a2cc4a6c737a9b3 /src/Uri.cpp | |
parent | 7cc97d98213436350624bcf5c38203b3116ca651 (diff) |
Remove useless increments
Thank you to @ya-ming for pointing this out!
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp index fef7fb6..e2448bb 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -258,10 +258,10 @@ namespace { state = ValidationState::COLON_BUT_NO_GROUPS_YET; } else if (DIGIT.Contains(c)) { potentialIpv4AddressStart = position; - ++numDigits = 1; + numDigits = 1; state = ValidationState::IN_GROUP_COULD_BE_IPV4; } else if (HEXDIG.Contains(c)) { - ++numDigits = 1; + numDigits = 1; state = ValidationState::IN_GROUP_NOT_IPV4; } else { return false; |