Skip to content

Commit

Permalink
remove redundant error check
Browse files Browse the repository at this point in the history
There is no new err being set since `configMapWatcher.Start`. So there
is no way this condition could be true here.
  • Loading branch information
dmathieu authored and tekton-robot committed Apr 25, 2019
1 parent cd7b993 commit e0fed7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ func main() {
},
Logger: logger,
}
if err != nil {
logger.Fatal("Failed to create the admission controller", zap.Error(err))
}

if err := controller.Run(stopCh); err != nil {
logger.Fatal("Error running admission controller", zap.Error(err))
}
Expand Down

0 comments on commit e0fed7f

Please sign in to comment.