Skip to content

Commit 529448f

Browse files
committed
Remove reflect from controller.
Just some cleanup, Sprintf("%T") is nicer.
1 parent f8ddee7 commit 529448f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cmd/controller/main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"net/http"
2020
"os"
2121
"path/filepath"
22-
"reflect"
2322
"strings"
2423
"sync"
2524
"time"
@@ -149,7 +148,7 @@ func main() {
149148
for _, r := range rs {
150149
go func(rr runner) {
151150
if runErr := rr.Run(workers, stop); runErr != nil {
152-
logger.WithError(runErr).Fatalf("could not start runner: %s", reflect.TypeOf(rr))
151+
logger.WithError(runErr).Fatalf("could not start runner: %T", rr)
153152
}
154153
}(r)
155154
}

0 commit comments

Comments
 (0)