Skip to content

Commit

Permalink
chore: add null error handling to counter gosec warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Aug 7, 2024
1 parent d915ab4 commit e3b4823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testingx/oonibackendwithlogin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
}
Expand Down

0 comments on commit e3b4823

Please sign in to comment.