Don't log err which is always nil. (#221)

This commit is contained in:
Jamie Holdstock 2020-12-30 12:36:27 +00:00 committed by GitHub
parent ac8e20f3c1
commit 49982533ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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