From f402a9c39f9d0c86219c7a0340878cb0ee83e370 Mon Sep 17 00:00:00 2001 From: hirenko-v Date: Thu, 26 Sep 2024 12:59:12 +0300 Subject: [PATCH] test --- cmd/snippet/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/snippet/main.go b/cmd/snippet/main.go index cfe94ac..7f42168 100644 --- a/cmd/snippet/main.go +++ b/cmd/snippet/main.go @@ -239,7 +239,7 @@ func (SnippetExecutor) Execute(ctx context.Context, in executor.ExecuteInput) (e } content = string(out) } - + if content == "" { content = "empty output" } fileSize := len(content) filename := fmt.Sprintf("%s.log", strconv.FormatInt(time.Now().Unix(), 10))