Remove unnecessary comparison
This commit is contained in:
parent
4d337ab1bc
commit
ddfd8427f5
@ -54,14 +54,6 @@ func CloseTicket(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if ticket.GuildId != guildId {
|
|
||||||
ctx.AbortWithStatusJSON(403, gin.H{
|
|
||||||
"success": true,
|
|
||||||
"error": "Guild ID does not matched",
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
data := closerelay.TicketClose{
|
data := closerelay.TicketClose{
|
||||||
GuildId: guildId,
|
GuildId: guildId,
|
||||||
TicketId: ticket.Id,
|
TicketId: ticket.Id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user