style: please the linters

This commit is contained in:
Florian Bauer
2025-01-22 13:34:40 +01:00
parent 4fa048090a
commit e408bdefde
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
package metrics package metrics
import "net/http" import (
"net/http"
)
func newResponseWriter(w http.ResponseWriter) *responseWriter { func newResponseWriter(w http.ResponseWriter) *responseWriter {
return &responseWriter{w, http.StatusOK} return &responseWriter{w, http.StatusOK}

View File

@@ -7,15 +7,16 @@ import (
"fmt" "fmt"
"log" "log"
"net/http" "net/http"
"ocspcrl/internal/metrics"
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"
"ocspcrl/internal/metrics"
"ocspcrl/internal/ocsp_source"
"github.com/alecthomas/kingpin/v2" "github.com/alecthomas/kingpin/v2"
cfocsp "github.com/cloudflare/cfssl/ocsp" cfocsp "github.com/cloudflare/cfssl/ocsp"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"
"ocspcrl/internal/ocsp_source"
) )
type loadCrlFunction func() error type loadCrlFunction func() error