🪄 Formats IPUtils

This commit is contained in:
Rune Harlyk
2024-07-09 20:07:19 +02:00
committed by Rune Harlyk
parent 6ee9100fdc
commit 2d57fc5fee
+3 -10
View File
@@ -19,17 +19,10 @@
const IPAddress IP_NOT_SET = IPAddress(INADDR_NONE); const IPAddress IP_NOT_SET = IPAddress(INADDR_NONE);
class IPUtils class IPUtils {
{
public: public:
static bool isSet(const IPAddress &ip) static bool isSet(const IPAddress &ip) { return ip != IP_NOT_SET; }
{ static bool isNotSet(const IPAddress &ip) { return ip == IP_NOT_SET; }
return ip != IP_NOT_SET;
}
static bool isNotSet(const IPAddress &ip)
{
return ip == IP_NOT_SET;
}
}; };
#endif // end IPUtils_h #endif // end IPUtils_h