Skip to content

Commit 556102a

Browse files
committed
chore: update golangci-lint arguments for colored output and clean up Cloudflare function
1 parent f686da5 commit 556102a

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
uses: golangci/golangci-lint-action@v3
1616
with:
1717
version: latest
18-
args: --timeout=10m
18+
args: --timeout=10m --out-format=colored-line-number

waf/cloudflare.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ func Cloudflare(headers http.Header, response string) bool {
1313

1414
CfRayHeader := headers.Get("cf-ray")
1515
return CfRayHeader != ""
16-
17-
return false
1816
}

0 commit comments

Comments
 (0)