mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-02 06:56:36 +08:00
fix(revive): rename unused parameters to _ for lint compliance
This commit is contained in:
@@ -27,7 +27,7 @@ import (
|
||||
// getUpgrader 返回 WebSocket 升级器
|
||||
func getUpgrader() *websocket.Upgrader {
|
||||
return &websocket.Upgrader{
|
||||
CheckOrigin: func(r *http.Request) bool {
|
||||
CheckOrigin: func(_ *http.Request) bool {
|
||||
return true // CORS 由 Gin 中间件处理
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user