aboutsummaryrefslogtreecommitdiff
path: root/src/Uri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r--src/Uri.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp
index 41ea1a4..ff161f3 100644
--- a/src/Uri.cpp
+++ b/src/Uri.cpp
@@ -270,12 +270,8 @@ namespace {
case ValidationState::COLON_BUT_NO_GROUPS_YET: {
if (c == ':') {
- if (doubleColonEncountered) {
- return false;
- } else {
- doubleColonEncountered = true;
- state = ValidationState::AFTER_DOUBLE_COLON;
- }
+ doubleColonEncountered = true;
+ state = ValidationState::AFTER_DOUBLE_COLON;
} else {
return false;
}