refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability

This commit is contained in:
wizardchen
2025-11-28 16:10:37 +08:00
parent a318a08ab7
commit 135e33eca4
38 changed files with 318 additions and 545 deletions
@@ -27,7 +27,7 @@ func (r *RetrieveEngineRegistry) Register(repo interfaces.RetrieveEngineService)
defer r.mu.Unlock()
if _, exists := r.repositories[repo.EngineType()]; exists {
return fmt.Errorf("Repository type %s already registered", repo.EngineType())
return fmt.Errorf("repository type %s already registered", repo.EngineType())
}
r.repositories[repo.EngineType()] = repo
@@ -43,7 +43,7 @@ func (r *RetrieveEngineRegistry) GetRetrieveEngineService(repoType types.Retriev
repo, exists := r.repositories[repoType]
if !exists {
return nil, fmt.Errorf("Repository of type %s not found", repoType)
return nil, fmt.Errorf("repository of type %s not found", repoType)
}
return repo, nil