Nim-1.4: style fix (#19317)

this allows "--styleCheck:usages --styleCheck:error"
This commit is contained in:
Ștefan Talpalaru
2022-01-04 18:31:09 +01:00
committed by GitHub
parent 32882fa024
commit 0dae9115c8

View File

@@ -207,9 +207,9 @@ proc getProtoByName*(name: string): int {.since: (1, 3, 5).} =
let protoent = winlean.getprotobyname(name.cstring)
else:
let protoent = posix.getprotobyname(name.cstring)
if protoent == nil:
raise newException(OsError, "protocol not found")
raise newException(OSError, "protocol not found")
result = protoent.p_proto.int