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)