From 7edd326b9529d2847094aeabe15c9c566b0915e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 8 Oct 2024 21:47:10 +0100 Subject: [PATCH] fix #59: processDir should call processFile instead. --- cmd/um/main.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/um/main.go b/cmd/um/main.go index e6f69de..1730f38 100644 --- a/cmd/um/main.go +++ b/cmd/um/main.go @@ -236,13 +236,7 @@ func (p *processor) processDir(inputDir string) error { } filePath := filepath.Join(inputDir, item.Name()) - allDec := common.GetDecoder(filePath, p.skipNoopDecoder) - if len(allDec) == 0 { - logger.Info("skipping while no suitable decoder", zap.String("source", item.Name())) - continue - } - - if err := p.process(filePath, allDec); err != nil { + if err := p.processFile(filePath); err != nil { logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err)) } }