Use SplitSeq for CAA issuer domain labels
go fix on Go 1.26 rewrites strings.Split range loops to SplitSeq; apply that so lint-go passes. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Bryan Frimin
parent
3948f47354
commit
fff8319e07
@@ -233,8 +233,8 @@ func isCAAIssuerDomainName(name string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
labels := strings.Split(name, ".")
|
labels := strings.SplitSeq(name, ".")
|
||||||
for _, label := range labels {
|
for label := range labels {
|
||||||
if !isCAAIssuerLabel(label) {
|
if !isCAAIssuerLabel(label) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user