Skip to content

Commit

Permalink
Remove reflect from controller.
Browse files Browse the repository at this point in the history
Just some cleanup, Sprintf("%T") is nicer.
  • Loading branch information
markmandel committed Jan 17, 2019
1 parent f8ddee7 commit 529448f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"net/http"
"os"
"path/filepath"
"reflect"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -149,7 +148,7 @@ func main() {
for _, r := range rs {
go func(rr runner) {
if runErr := rr.Run(workers, stop); runErr != nil {
logger.WithError(runErr).Fatalf("could not start runner: %s", reflect.TypeOf(rr))
logger.WithError(runErr).Fatalf("could not start runner: %T", rr)
}
}(r)
}
Expand Down

0 comments on commit 529448f

Please sign in to comment.