From: Sergey Matveev Date: Thu, 23 Mar 2023 10:59:22 +0000 (+0300) Subject: Excess loop X-Git-Tag: v0.27.3~2 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=088c229ec4e9aeb919cdc0e36ea6f0368f24f790 Excess loop --- diff --git a/cmd/sgblog/http.go b/cmd/sgblog/http.go index c8365b6..58515d8 100644 --- a/cmd/sgblog/http.go +++ b/cmd/sgblog/http.go @@ -212,9 +212,7 @@ func serveHTTP() { cfg.CommentsNotesRef, cfg.CommentsEmail, } - for _, gitURL := range cfg.GitURLs { - etagHashForWeb = append(etagHashForWeb, gitURL) - } + etagHashForWeb = append(etagHashForWeb, cfg.GitURLs...) headHash, err := initRepo(cfg) if err != nil {