mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
Code cleanup - simplify server side code. (#3870)
Fix all the issues reported by `gosimple` tool.
This commit is contained in:
+1
-4
@@ -98,10 +98,7 @@ func isWebhookQueue(sqsArn arnSQS) bool {
|
||||
return false
|
||||
}
|
||||
rNotify := serverConfig.Notify.GetWebhookByID(sqsArn.AccountID)
|
||||
if !rNotify.Enable {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return rNotify.Enable
|
||||
}
|
||||
|
||||
// Returns true if queueArn is for an Redis queue.
|
||||
|
||||
Reference in New Issue
Block a user