Don't log err which is always nil. (#221)
This commit is contained in:
parent
ac8e20f3c1
commit
49982533ab
@ -86,8 +86,9 @@ func setVoteChoices(c *gin.Context) {
|
||||
}
|
||||
|
||||
if request.Timestamp <= prevReq.Timestamp {
|
||||
log.Warnf("%s: Request uses invalid timestamp (ticketHash=%s): %v",
|
||||
funcName, ticket.Hash, err)
|
||||
log.Warnf("%s: Request uses invalid timestamp, %d is not greater "+
|
||||
"than %d (ticketHash=%s)",
|
||||
funcName, request.Timestamp, prevReq.Timestamp, ticket.Hash)
|
||||
sendError(errInvalidTimestamp, c)
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user