Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 21d5e07

Browse files
committed
fix bug of DMCA takedown bug
1 parent a328c6d commit 21d5e07

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

api.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ func CollectLanguages(username string, repos []interface{}) (data map[string]flo
8484
for _, repo := range repos {
8585
go func(username string, repo string) {
8686
languages, err := GetLanguages(username, repo)
87-
if err != nil {
88-
return
87+
if err != nil { // fix DMCA Takedown Bug
88+
channel <- map[string]float64{}
89+
} else {
90+
channel <- languages
8991
}
90-
channel <- languages
9192
}(username, repo.(map[string]interface{})["name"].(string))
9293
}
9394

0 commit comments

Comments
 (0)