This is an automated email from the ASF dual-hosted git repository.

LinkinStars pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git

commit c7b37a152b50c03836d533844c70be25a4c83ffe
Author: Xan Torres <[email protected]>
AuthorDate: Sat Aug 1 20:40:39 2026 +0800

    style: iterate the rel attribute tokens without building a slice
    
    The linter configured for this repository flags the slice-building form,
    so make lint fails on it.
    
    (cherry picked from commit 1cfd5daf81bfe0823f497c27fea43297b15b18c9)
---
 internal/controller/template_controller.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/controller/template_controller.go 
b/internal/controller/template_controller.go
index 3c102166..4343738a 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -117,7 +117,7 @@ func GetStyle() (script []string, css []string) {
                if !ok {
                        return false
                }
-               for _, tok := range strings.Fields(rel) {
+               for tok := range strings.FieldsSeq(rel) {
                        if strings.EqualFold(tok, "stylesheet") {
                                return true
                        }

Reply via email to