Style: Fix Code Formatting (go fmt)

This commit is contained in:
Fabrizio Salmi
2025-12-06 22:39:53 +01:00
parent 47e05e907e
commit 5d57051169
3 changed files with 3 additions and 5 deletions

View File

@@ -220,7 +220,6 @@ func (m *Middleware) Provision(ctx caddy.Context) error {
}
}
// Configure ASN blocking
if m.BlockASNs.Enabled {
if !fileExists(m.BlockASNs.GeoIPDBPath) {

View File

@@ -4,10 +4,10 @@ import (
"bytes"
"context"
"mime/multipart"
"os"
"net/http"
"net/http/httptest"
"net/netip"
"os"
"regexp"
"strings"
"testing"

View File

@@ -1,16 +1,15 @@
// rules.go
package caddywaf
import (
"encoding/json"
"fmt"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"net/http"
"os"
"regexp"
"sort"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
func (m *Middleware) processRuleMatch(w http.ResponseWriter, r *http.Request, rule *Rule, target, value string, state *WAFState) bool {