mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-09 18:54:32 +00:00
Remove made up ValueError (#42)
This commit is contained in:
parent
bb2221ba8c
commit
cf82e2d51d
@ -32,8 +32,7 @@ func init*(T: type ValidIpAddress, str: string): T
|
||||
{.raises: [ValueError].} =
|
||||
ValidIpAddress(value: stdNet.parseIpAddress(str))
|
||||
|
||||
func init*(T: type ValidIpAddress, ip: IpAddress): T
|
||||
{.raises: [ValueError].} =
|
||||
func init*(T: type ValidIpAddress, ip: IpAddress): T =
|
||||
ValidIpAddress(value: ip)
|
||||
|
||||
converter toNormalIp*(ip: ValidIpAddress): IpAddress =
|
||||
|
Loading…
x
Reference in New Issue
Block a user