From 9142f19cc236f9a1491f6151ce2df09776ea40d1 Mon Sep 17 00:00:00 2001 From: liuzx Date: Thu, 15 Dec 2022 11:28:22 +0800 Subject: [PATCH] fix-3393 --- routers/api/v1/repo/cloudbrain.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 44685a921..2ab733e21 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -769,11 +769,6 @@ func CloudbrainGetLog(ctx *context.APIContext) { } if ctx.Data["existStr"] != nil && result["Lines"].(int) < 60 { content = content + ctx.Data["existStr"].(string) - if result["Lines"].(int) == 0 { - result["Lines"] = 1 - // startLine := ctx.QueryInt("base_line") - // result["EndLine"] = startLine + 1 - } } } } else {