Removed semi-colons.

This commit is contained in:
Avahe Kellenberger 2020-08-05 03:13:30 -04:00
parent 38f138f0a8
commit fcb7993dc5
2 changed files with 6 additions and 6 deletions

View File

@ -110,7 +110,7 @@ proc handleWebsocketPacket(shard: Shard) {.async.} =
while true: while true:
var packet: tuple[opcode: Opcode, data: string] var packet: tuple[opcode: Opcode, data: string]
packet = await shard.ws.readData(); packet = await shard.ws.readData()
echo "[SHARD ", $shard.id, "] Received gateway payload: ", packet.data echo "[SHARD ", $shard.id, "] Received gateway payload: ", packet.data
if packet.opcode == Opcode.Close: if packet.opcode == Opcode.Close:
@ -120,7 +120,7 @@ proc handleWebsocketPacket(shard: Shard) {.async.} =
# If we fail to parse the json just stop this loop # If we fail to parse the json just stop this loop
try: try:
json = parseJson(packet.data); json = parseJson(packet.data)
except: except:
echo "Failed to parse websocket payload: ", packet.data echo "Failed to parse websocket payload: ", packet.data
continue continue

View File

@ -40,13 +40,13 @@ proc canLog(log: Log, sev: LogSeverity): bool =
case sev case sev
of LogSeverity.logSevInfo: of LogSeverity.logSevInfo:
return (log.flags and int(LoggerFlags.loggerFlagInfoSeverity)) == int(LoggerFlags.loggerFlagInfoSeverity); return (log.flags and int(LoggerFlags.loggerFlagInfoSeverity)) == int(LoggerFlags.loggerFlagInfoSeverity)
of LogSeverity.logSevWarn: of LogSeverity.logSevWarn:
return (log.flags and int(LoggerFlags.loggerFlagWarnSeverity)) == int(LoggerFlags.loggerFlagWarnSeverity); return (log.flags and int(LoggerFlags.loggerFlagWarnSeverity)) == int(LoggerFlags.loggerFlagWarnSeverity)
of LogSeverity.logSevError: of LogSeverity.logSevError:
return (log.flags and int(LoggerFlags.loggerFlagErrorSeverity)) == int(LoggerFlags.loggerFlagErrorSeverity); return (log.flags and int(LoggerFlags.loggerFlagErrorSeverity)) == int(LoggerFlags.loggerFlagErrorSeverity)
else: else:
return false; return false
proc severityToString(sev: LogSeverity): string = proc severityToString(sev: LogSeverity): string =
case sev case sev