Skip to content

Commit

Permalink
Refactor by getting rid of redundant value in loop
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Ossa <[email protected]>
  • Loading branch information
Leonard Ossa committed Jul 10, 2024
1 parent a8b6cb0 commit e929058
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openvpn/addr/addrspacesplit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ class AddressSpaceSplitter : public RouteList
static Type find(const RouteList &in, const Route &route)
{
Type type = Type::LEAF;
for(const auto& i : in)
for (const auto &r : in)
{
const Route &r = i;
if (route == r)
type = Type::EQUAL;
else if (route.contains(r))
Expand Down

0 comments on commit e929058

Please sign in to comment.