Fix linter errors in Grafana additions

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2023-04-28 16:32:42 +02:00
parent caac4d5071
commit 87c727e957
3 changed files with 5 additions and 5 deletions

View file

@ -552,10 +552,10 @@ func randomChunk(t *testing.T) chunkenc.Chunk {
func randomUnsupportedChunk(t *testing.T) chunkenc.Chunk {
chunk := newUnsupportedChunk()
len := rand.Int() % 120
length := rand.Int() % 120
app, err := chunk.Appender()
require.NoError(t, err)
for i := 0; i < len; i++ {
for i := 0; i < length; i++ {
app.Append(rand.Int63(), rand.Float64())
}
return chunk

View file

@ -261,11 +261,11 @@ func TestPostingsForMatchersCache(t *testing.T) {
type indexForPostingsMock struct{}
func (idx indexForPostingsMock) LabelValues(name string, matchers ...*labels.Matcher) ([]string, error) {
func (idx indexForPostingsMock) LabelValues(string, ...*labels.Matcher) ([]string, error) {
panic("implement me")
}
func (idx indexForPostingsMock) Postings(name string, values ...string) (index.Postings, error) {
func (idx indexForPostingsMock) Postings(string, ...string) (index.Postings, error) {
panic("implement me")
}

View file

@ -99,7 +99,7 @@ func (f *symbolFlushers) loop() {
}
}
for range f.jobs {
for range f.jobs { //nolint:revive // This "empty" block is intentional
// drain the channel, don't do more flushing. only used when error occurs.
}
}