Skip to content

Commit

Permalink
Merge pull request #235 from codyyu1/main
Browse files Browse the repository at this point in the history
fix:文件配置持久化字段添加非空判断
  • Loading branch information
ChaoyongLiang authored Feb 13, 2025
2 parents 531342e + 69e0dd8 commit e1e186f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/flow/configuration/file_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ func (r *ConfigFileRepo) loadRemoteFile() *configconnector.ConfigFile {
// GetPersistent 获取配置文件持久化配置
func (r *ConfigFileRepo) GetPersistent() model.Persistent {
remoteFile := r.loadRemoteFile()
if remoteFile == nil {
return model.Persistent{}
}
return remoteFile.GetPersistent()
}

Expand Down

0 comments on commit e1e186f

Please sign in to comment.