Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refreshBasicInfo skip if empty #6457

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions internal/apps/dop/providers/efficiency_measure/basic_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
import "context"

func (p *provider) refreshBasicInfo() error {
if len(p.Cfg.OrgWhiteList) == 0 {
return nil
}

Check warning on line 22 in internal/apps/dop/providers/efficiency_measure/basic_info.go

View check run for this annotation

Codecov / codecov/patch

internal/apps/dop/providers/efficiency_measure/basic_info.go#L20-L22

Added lines #L20 - L22 were not covered by tests

Check failure on line 23 in internal/apps/dop/providers/efficiency_measure/basic_info.go

View workflow job for this annotation

GitHub Actions / CODE-CHECK

File is not `gofmt`-ed with `-s` (gofmt)
userProjects, err := p.projDB.GetAllUserJoinedProjects(p.Cfg.OrgWhiteList)
if err != nil {
p.Log.Errorf("failed to get all user joined projects, err: %v", err)
Expand Down
Loading