ca/testutils/externalutils.go
Method signHandler.ServeHTTP
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (h *signHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if atomic.LoadUint32(h.flaky) == 1 {
w.WriteHeader(http.StatusInternalServerError)
}
Method signHandler.ServeHTTP
has 7 return statements (exceeds 4 allowed). Open
Open
func (h *signHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if atomic.LoadUint32(h.flaky) == 1 {
w.WriteHeader(http.StatusInternalServerError)
}