Fix linter comments

This commit is contained in:
Alexander Marshalov 2023-12-12 16:59:31 +01:00
parent f7ef3d4aa1
commit 99384fce4f
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import (
func WriteHumanReadableState(w http.ResponseWriter, r *http.Request, rws map[string]*Aggregators) {
rwActive := r.FormValue("rw")
if rwActive == "" {
for key, _ := range rws {
for key := range rws {
rwActive = key
break
}

View file

@ -28,7 +28,7 @@ const DEFAULT_LIMIT = 1000
<h1>Aggregations</h1>
<hr />
<ul class="nav nav-tabs" id="rw-tab" role="tablist">
{% for rwKey, _ := range rws %}
{% for rwKey := range rws %}
<li class="nav-item" role="presentation">
<button class="nav-link{%if rwKey==rwActive %}{% space %}active{%endif%}" type="button" role="tab"
onclick="location.href='?rw={%s rwKey %}'">

View file

@ -43,7 +43,7 @@ func StreamStreamAggHTML(qw422016 *qt422016.Writer, rws map[string]*Aggregators,
//line lib/streamaggr/state.qtpl:24
qw422016.N().S(`<div class="container-fluid"><div class="row"><main class="col-12"><h1>Aggregations</h1><hr /><ul class="nav nav-tabs" id="rw-tab" role="tablist">`)
//line lib/streamaggr/state.qtpl:31
for rwKey, _ := range rws {
for rwKey := range rws {
//line lib/streamaggr/state.qtpl:31
qw422016.N().S(`<li class="nav-item" role="presentation"><button class="nav-link`)
//line lib/streamaggr/state.qtpl:33