Skip to content

Commit

Permalink
fix: trim error console, befcause it's for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yanskun committed May 4, 2024
1 parent 80fb191 commit fc5e83f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,16 @@ func main() {

client, err := api.DefaultRESTClient()
if err != nil {
log.Fatal(err)
return
}

repos, err := getRepositories(client, account)
if err != nil {
log.Fatal(err)
return
}

results, err := getLanguages(client, repos)
if err != nil {
log.Fatal(err)
return
}

Expand Down Expand Up @@ -69,6 +66,7 @@ func getRepositories(client *api.RESTClient, account string) ([]github.Repositor
endpoint := fmt.Sprintf("%s?sort=updated&per_page=100&page=%d", fmt.Sprintf("users/%s/repos", account), page)
response, err := client.Request(http.MethodGet, endpoint, nil)
if err != nil {
fmt.Printf("%s is not a valid GitHub username\n", account)
return nil, err
}

Expand Down

0 comments on commit fc5e83f

Please sign in to comment.