Skip to content

Commit 07f3bbf

Browse files
committed
fixed linter errors for benchmark tests
Signed-off-by: hughneale <mail@hughneale.com>
1 parent c822319 commit 07f3bbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

model/task_registry_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func BenchmarkTaskRegistry_RegisterTask(b *testing.B) {
470470
b.ResetTimer()
471471
for i := 0; i < b.N; i++ {
472472
taskType := fmt.Sprintf("benchmark_task_%d", i)
473-
registry.RegisterTask(taskType, constructor)
473+
_ = registry.RegisterTask(taskType, constructor)
474474
}
475475
}
476476

@@ -481,7 +481,7 @@ func BenchmarkTaskRegistry_GetConstructor(b *testing.B) {
481481
// Pre-register some tasks
482482
for i := range 1000 {
483483
taskType := fmt.Sprintf("benchmark_task_%d", i)
484-
registry.RegisterTask(taskType, constructor)
484+
_ = registry.RegisterTask(taskType, constructor)
485485
}
486486

487487
b.ResetTimer()
@@ -498,7 +498,7 @@ func BenchmarkTaskRegistry_ConcurrentAccess(b *testing.B) {
498498
// Pre-register some tasks
499499
for i := range 100 {
500500
taskType := fmt.Sprintf("concurrent_benchmark_task_%d", i)
501-
registry.RegisterTask(taskType, constructor)
501+
_ = registry.RegisterTask(taskType, constructor)
502502
}
503503

504504
b.ResetTimer()

0 commit comments

Comments
 (0)