This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch dev-1
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/dev-1 by this push:
     new 3702bf919 style(helpers): fix some typos
3702bf919 is described below

commit 3702bf919de112801365cf51e1ee932f14d52ba0
Author: d4x1 <[email protected]>
AuthorDate: Wed Aug 7 10:46:34 2024 +0800

    style(helpers): fix some typos
---
 backend/helpers/pluginhelper/api/collector_state_manager.go | 2 +-
 backend/helpers/pluginhelper/api/subtask_state_manager.go   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/helpers/pluginhelper/api/collector_state_manager.go 
b/backend/helpers/pluginhelper/api/collector_state_manager.go
index 8aeeffebc..b977b12bb 100644
--- a/backend/helpers/pluginhelper/api/collector_state_manager.go
+++ b/backend/helpers/pluginhelper/api/collector_state_manager.go
@@ -84,7 +84,7 @@ func NewCollectorStateManager(basicRes context.BasicRes, 
syncPolicy *models.Sync
                return
        }
 
-       // if timeAfter is not set or NOT before the previous vaule, we are in 
the incremental mode
+       // if timeAfter is not set or NOT before the previous value, we are in 
the incremental mode
        if syncPolicy.TimeAfter == nil || state.TimeAfter == nil || 
!syncPolicy.TimeAfter.Before(*state.TimeAfter) {
                stateManager.isIncremental = true
                stateManager.since = state.LatestSuccessStart
diff --git a/backend/helpers/pluginhelper/api/subtask_state_manager.go 
b/backend/helpers/pluginhelper/api/subtask_state_manager.go
index 22f71453d..86453c124 100644
--- a/backend/helpers/pluginhelper/api/subtask_state_manager.go
+++ b/backend/helpers/pluginhelper/api/subtask_state_manager.go
@@ -118,7 +118,7 @@ func NewSubtaskStateManager(args *SubtaskCommonArgs) 
(stateManager *SubtaskState
        if syncPolicy.FullSync || state.PrevStartedAt == nil {
                return
        }
-       // if timeAfter is not set or NOT before the previous vaule, we are in 
the incremental mode
+       // if timeAfter is not set or NOT before the previous value, we are in 
the incremental mode
        if (syncPolicy.TimeAfter == nil || state.TimeAfter == nil || 
!syncPolicy.TimeAfter.Before(*state.TimeAfter)) &&
                // and the previous config is the same as the current config
                (state.PrevConfig == "" || state.PrevConfig == 
stateManager.config) {

Reply via email to