From e3b4823d4afa6639a9f5d9000add3e02ff68cb86 Mon Sep 17 00:00:00 2001 From: decfox Date: Wed, 7 Aug 2024 23:46:35 +0530 Subject: [PATCH] chore: add null error handling to counter gosec warning --- internal/testingx/oonibackendwithlogin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testingx/oonibackendwithlogin.go b/internal/testingx/oonibackendwithlogin.go index 1cb3fede6..ac0398551 100644 --- a/internal/testingx/oonibackendwithlogin.go +++ b/internal/testingx/oonibackendwithlogin.go @@ -234,7 +234,7 @@ func (h *OONIBackendWithLoginFlow) handleOpenVPNConfig() http.Handler { // we must lock because of SetOpenVPNConfig h.mu.Lock() - w.Write(h.openVPNConfig) + _, _ = w.Write(h.openVPNConfig) h.mu.Unlock() }) }