mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-29 07:25:51 +00:00
fix: 修复 CodeQL code scanning warning 问题
This commit is contained in:
@@ -1135,7 +1135,7 @@ class AnnualReportService {
|
||||
|
||||
const now = Date.now()
|
||||
if (now - lastProgressAt > 200) {
|
||||
let progress = 30
|
||||
let progress: number
|
||||
if (totalMessagesForProgress > 0) {
|
||||
const ratio = Math.min(1, processedMessages / totalMessagesForProgress)
|
||||
progress = 30 + Math.floor(ratio * 50)
|
||||
|
||||
Reference in New Issue
Block a user