From 4f940d3d7eb85681103cd4c7fcdc52702ea3a5cb Mon Sep 17 00:00:00 2001 From: Jeremy Lewi Date: Wed, 17 Apr 2024 14:52:31 -0700 Subject: [PATCH] Fix lint. --- app/cmd/logs.go | 3 ++- app/pkg/analyze/analyzer.go | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cmd/logs.go b/app/cmd/logs.go index 370c64fe..522fc275 100644 --- a/app/cmd/logs.go +++ b/app/cmd/logs.go @@ -3,13 +3,14 @@ package cmd import ( "context" "fmt" + "os" + "github.com/go-logr/zapr" "github.com/jlewi/foyle/app/pkg/analyze" "github.com/jlewi/foyle/app/pkg/application" "github.com/jlewi/monogo/helpers" "github.com/spf13/cobra" "go.uber.org/zap" - "os" ) // NewLogsCmd returns a command to manage logs diff --git a/app/pkg/analyze/analyzer.go b/app/pkg/analyze/analyzer.go index ec123837..b0afff7d 100644 --- a/app/pkg/analyze/analyzer.go +++ b/app/pkg/analyze/analyzer.go @@ -61,6 +61,9 @@ func (a *Analyzer) Analyze(ctx context.Context, logsDir string, outDir string) ( } traces, blocks, err := buildTraces(ctx, jsonFiles, results) + if err != nil { + return results, err + } err = buildBlockLogs(ctx, traces, blocks, results.BlockLogs[0])