fix: nil check

This commit is contained in:
Kevin Franklin Kim 2024-11-20 16:07:58 +01:00
parent 3f644f8c52
commit deadd984ad
No known key found for this signature in database

View File

@ -115,14 +115,14 @@ func (c *Collect) MPv2HTTPHandler(w http.ResponseWriter, r *http.Request) {
// ------------------------------------------------------------------------------------------------
func (c *Collect) gtagHandler(l *zap.Logger, w http.ResponseWriter, r *http.Request, payload *gtag.Payload) error {
if c.taggingProxy == nil {
if c.taggingProxy != nil {
c.taggingProxy.ServeHTTP(w, r)
}
return nil
}
func (c *Collect) mpv2Handler(l *zap.Logger, w http.ResponseWriter, r *http.Request, payload *mpv2.Payload[any]) error {
if c.taggingProxy == nil {
if c.taggingProxy != nil {
c.taggingProxy.ServeHTTP(w, r)
}
return nil