Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsaka committed Sep 16, 2024
1 parent a6902cf commit 7772429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions velox/functions/prestosql/types/IPPrefixType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class IPPrefixCastOperator : public exec::CastOperator {
ipAddressString.str()));
break;
case folly::CIDRNetworkError::INVALID_IP: {
auto const vec = splitIpSlashCidr(ipAddressString.str());
auto const vec = splitIpSlashCidr(ipAddressString);
context.setStatus(
row,
Status::UserError(
Expand All @@ -179,7 +179,7 @@ class IPPrefixCastOperator : public exec::CastOperator {
break;
}
case folly::CIDRNetworkError::INVALID_CIDR: {
auto const vec = splitIpSlashCidr(ipAddressString.str());
auto const vec = splitIpSlashCidr(ipAddressString);
context.setStatus(
row,
Status::UserError(
Expand All @@ -188,7 +188,7 @@ class IPPrefixCastOperator : public exec::CastOperator {
break;
}
case folly::CIDRNetworkError::CIDR_MISMATCH: {
auto const vec = splitIpSlashCidr(ipAddressString.str());
auto const vec = splitIpSlashCidr(ipAddressString);
auto const subnet =
folly::IPAddress::tryFromString(vec.at(0)).value();
context.setStatus(
Expand Down

0 comments on commit 7772429

Please sign in to comment.