Remove made up ValueError (#42)

This commit is contained in:
Kim De Mey 2020-06-09 10:21:28 +02:00 committed by GitHub
parent bb2221ba8c
commit cf82e2d51d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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 =