From 51a816eb54a24ebb72dfe0c3d76f4a63b471d8b9 Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 15 Dec 2022 11:12:12 +0800 Subject: [PATCH] fix-3393 --- routers/api/v1/repo/cloudbrain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 2ab733e21..bc194e2f3 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -767,7 +767,7 @@ func CloudbrainGetLog(ctx *context.APIContext) { result["Lines"] = 1 result["EndLine"] = 1 } - if ctx.Data["existStr"] != nil && result["Lines"].(int) < 60 { + if ctx.Data["existStr"] != nil && result["Lines"].(int) < 60 || ctx.Data["existStr"] != nil && result["Lines"] == 0 { content = content + ctx.Data["existStr"].(string) } }