Skip to content

Commit 1a56925

Browse files
committed
chore(frameworks): trim redundant cdn detector doc comments
1 parent 5557266 commit 1a56925

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • internal/scan/frameworks/detectors

internal/scan/frameworks/detectors/cdn.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func init() {
4141
// merely mentions "cloudflare" in its body (a badge, a blog post, a status
4242
// widget) must not fire, only the response the edge itself stamped.
4343

44-
// cloudflareDetector detects the Cloudflare CDN/edge.
4544
type cloudflareDetector struct{}
4645

4746
func (d *cloudflareDetector) Name() string { return "Cloudflare" }
@@ -59,7 +58,6 @@ func (d *cloudflareDetector) Detect(body string, headers http.Header) (float32,
5958
return sigmoidConfidence(base.MatchSignatures(body, headers)), ""
6059
}
6160

62-
// fastlyDetector detects the Fastly CDN.
6361
type fastlyDetector struct{}
6462

6563
func (d *fastlyDetector) Name() string { return "Fastly" }
@@ -79,7 +77,6 @@ func (d *fastlyDetector) Detect(body string, headers http.Header) (float32, stri
7977
return sigmoidConfidence(base.MatchSignatures(body, headers)), ""
8078
}
8179

82-
// akamaiDetector detects the Akamai CDN/edge.
8380
type akamaiDetector struct{}
8481

8582
func (d *akamaiDetector) Name() string { return "Akamai" }
@@ -96,7 +93,6 @@ func (d *akamaiDetector) Detect(body string, headers http.Header) (float32, stri
9693
return sigmoidConfidence(base.MatchSignatures(body, headers)), ""
9794
}
9895

99-
// cloudfrontDetector detects AWS CloudFront.
10096
type cloudfrontDetector struct{}
10197

10298
func (d *cloudfrontDetector) Name() string { return "Amazon CloudFront" }
@@ -113,7 +109,6 @@ func (d *cloudfrontDetector) Detect(body string, headers http.Header) (float32,
113109
return sigmoidConfidence(base.MatchSignatures(body, headers)), ""
114110
}
115111

116-
// vercelDetector detects Vercel's edge network.
117112
type vercelDetector struct{}
118113

119114
func (d *vercelDetector) Name() string { return "Vercel" }
@@ -130,7 +125,6 @@ func (d *vercelDetector) Detect(body string, headers http.Header) (float32, stri
130125
return sigmoidConfidence(base.MatchSignatures(body, headers)), ""
131126
}
132127

133-
// netlifyDetector detects Netlify's edge network.
134128
type netlifyDetector struct{}
135129

136130
func (d *netlifyDetector) Name() string { return "Netlify" }

0 commit comments

Comments
 (0)