Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #137 from marco-lancini/master
Browse files Browse the repository at this point in the history
Fix edge case where sess.Repositories=0
  • Loading branch information
Michael Henriksen committed Jul 5, 2018
2 parents d2f4901 + edea020 commit 7be4c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func AnalyzeRepositories(sess *core.Session) {
var ch = make(chan *core.GithubRepository, len(sess.Repositories))
var wg sync.WaitGroup
var threadNum int
if len(sess.Repositories) == 1 {
if len(sess.Repositories) <= 1 {
threadNum = 1
} else if len(sess.Repositories) <= *sess.Options.Threads {
threadNum = len(sess.Repositories) - 1
Expand Down

0 comments on commit 7be4c53

Please sign in to comment.