Skip to content

Commit fe63cdd

Browse files
authored
fix(revert-1952): fix: add validation of error to k8sWatcherErrorHandler (#1969)
Reverts #1952
1 parent 47de328 commit fe63cdd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/k8s/watcher_linux.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ func Start(ctx context.Context, k *watchers.K8sWatcher) {
4343
// retinaK8sErrorHandler is a custom error handler for the watcher
4444
// that logs the error and tags the error to easily identify
4545
func k8sWatcherErrorHandler(c context.Context, e error, s string, i ...interface{}) {
46-
if e == nil {
47-
return
48-
}
49-
5046
errStr := e.Error()
51-
5247
logError := func(er, r string) {
5348
logger.WithFields(logrus.Fields{
5449
"underlyingError": er,

0 commit comments

Comments
 (0)