aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-04-19 10:15:57 -0600
committerFrancis Lavoie <[email protected]>2024-04-23 19:55:18 -0400
commit07ba29f39b2a5a7eec503bd776adeca380e79515 (patch)
treeddc805ea8b17168873c72d21befc5b786555754b
parente3479ff95a9a7f70574dbaffa19167f226930a50 (diff)
downloadcaddy-07ba29f39b2a5a7eec503bd776adeca380e79515.tar.gz
caddy-07ba29f39b2a5a7eec503bd776adeca380e79515.zip
Try to fix some lint errors
-rw-r--r--cmd/main.go6
-rw-r--r--modules/caddyhttp/requestbody/requestbody.go3
2 files changed, 5 insertions, 4 deletions
diff --git a/cmd/main.go b/cmd/main.go
index 85b62fcc4..d9dfc6b2f 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -38,9 +38,6 @@ import (
"go.uber.org/automaxprocs/maxprocs"
"go.uber.org/zap"
- "github.com/caddyserver/caddy/v2"
- "github.com/caddyserver/caddy/v2/caddyconfig"
-
// For running in minimal environments, this can ease
// headaches related to establishing TLS connections.
// "Package fallback embeds a set of fallback X.509 trusted
@@ -52,6 +49,9 @@ import (
// import this package. This package must be kept up to
// date for security and compatibility reasons."
_ "golang.org/x/crypto/x509roots/fallback"
+
+ "github.com/caddyserver/caddy/v2"
+ "github.com/caddyserver/caddy/v2/caddyconfig"
)
func init() {
diff --git a/modules/caddyhttp/requestbody/requestbody.go b/modules/caddyhttp/requestbody/requestbody.go
index 3cea7b4f9..35e9bb001 100644
--- a/modules/caddyhttp/requestbody/requestbody.go
+++ b/modules/caddyhttp/requestbody/requestbody.go
@@ -19,9 +19,10 @@ import (
"net/http"
"time"
+ "go.uber.org/zap"
+
"github.com/caddyserver/caddy/v2"
"github.com/caddyserver/caddy/v2/modules/caddyhttp"
- "go.uber.org/zap"
)
func init() {