diff --git a/internal/driver/config/namespace_watcher.go b/internal/driver/config/namespace_watcher.go index 914512936..e8a2054d2 100644 --- a/internal/driver/config/namespace_watcher.go +++ b/internal/driver/config/namespace_watcher.go @@ -137,7 +137,6 @@ func eventHandler(ctx context.Context, nw *NamespaceWatcher, done <-chan int, in func readNamespaceFile(l *logrusx.Logger, r io.Reader, source string) *NamespaceFile { var parse Parser - parse, err := GetParser(source) if err != nil { l.WithError(err).WithField("file_name", source).Warn("could not infer format from file extension")