Skip to content

Commit

Permalink
fix: refreshBasicInfo skip empty
Browse files Browse the repository at this point in the history
Signed-off-by: Ash <root@viper.run>
  • Loading branch information
iutx committed Oct 22, 2024
1 parent 7cd710a commit ab88972
Showing 1 changed file with 4 additions and 0 deletions.
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 @@ package efficiency_measure
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

0 comments on commit ab88972

Please sign in to comment.