Skip to content

Commit

Permalink
consistent style
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Jan 15, 2025
1 parent df617ff commit 51ce91b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aws-cpp-sdk-core/source/utils/DNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ namespace Aws
// Handle last segment
if(labelStart < host.length())
{
if(!isValidIPv6Segment(host.substr(labelStart))) return false;
if(!isValidIPv6Segment(host.substr(labelStart))){
return false;
}
}
// Check if we have 8 segments or less with one double colon
return (doubleColonFound && segmentCount < 8) || (!doubleColonFound && segmentCount == 8);
Expand Down

0 comments on commit 51ce91b

Please sign in to comment.