Skip to content

Commit

Permalink
chore: remove unnecessary fmt.Sprintf calls
Browse files Browse the repository at this point in the history
Remove unnecessary fmt.Sprintf calls for static code checks in main-2.x.

(cherry picked from commit 8497fbf)
  • Loading branch information
gwossum committed Nov 12, 2024
1 parent ca4cf91 commit a7baaeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsdb/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2879,13 +2879,13 @@ type mockStartupLogger struct {

func (m *mockStartupLogger) AddShard() {
m.mu.Lock()
m._shardTracker = append(m._shardTracker, fmt.Sprintf("shard-add"))
m._shardTracker = append(m._shardTracker, "shard-add")
m.mu.Unlock()
}

func (m *mockStartupLogger) CompletedShard() {
m.mu.Lock()
m._shardTracker = append(m._shardTracker, fmt.Sprintf("shard-complete"))
m._shardTracker = append(m._shardTracker, "shard-complete")
m.mu.Unlock()
}

Expand Down

0 comments on commit a7baaeb

Please sign in to comment.