chore: tweak linter

This commit is contained in:
Steven
2024-05-02 21:46:47 +08:00
parent 775b79338d
commit 05f73a2236
3 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Ech
// GRPC web proxy.
options := []grpcweb.Option{
grpcweb.WithCorsForRegisteredEndpointsOnly(false),
grpcweb.WithOriginFunc(func(origin string) bool {
grpcweb.WithOriginFunc(func(_ string) bool {
return true
}),
}