From d463fa14dd62c33aa0d2139c79bad8e2978ceb19 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 22 Oct 2023 10:50:27 +0300 Subject: [PATCH] fix static --- utils/coreutils/techutils.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/coreutils/techutils.go b/utils/coreutils/techutils.go index ab0a17570..ef9570cd9 100644 --- a/utils/coreutils/techutils.go +++ b/utils/coreutils/techutils.go @@ -233,8 +233,10 @@ func mapFilesToRelevantWorkingDirectories(files []string, requestedDescriptors m } } } - strJson, _ := json.MarshalIndent(workingDirectoryToIndicators, "", " ") - log.Debug(fmt.Sprintf("mapped %d working directories with indicators/descriptors:\n%s", len(workingDirectoryToIndicators), strJson)) + strJson, err := json.MarshalIndent(workingDirectoryToIndicators, "", " ") + if err == nil { + log.Debug(fmt.Sprintf("mapped %d working directories with indicators/descriptors:\n%s", len(workingDirectoryToIndicators), strJson)) + } return }