From facf5478e49785a235ff3a7ff2c0e116383f4f6c Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 27 Oct 2022 16:42:40 +0800 Subject: [PATCH] fix issue --- routers/api/v1/repo/cloudbrain.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routers/api/v1/repo/cloudbrain.go b/routers/api/v1/repo/cloudbrain.go index 052fb2504..7fb30c687 100755 --- a/routers/api/v1/repo/cloudbrain.go +++ b/routers/api/v1/repo/cloudbrain.go @@ -573,10 +573,10 @@ func CloudbrainGetLog(ctx *context.APIContext) { } } } - else{ - if startLine > 0 { + else { + if startLine>0 { startLine += 1 - endLine += 1 + endLine += 1 } } result = getLogFromModelDir(job.JobName, startLine, endLine, resultPath)