Skip to content

Commit

Permalink
Use len(adbserialport) >=1
Browse files Browse the repository at this point in the history
  • Loading branch information
thomascarpentier committed Jul 8, 2020
1 parent 9685a34 commit ed2104a
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 @@ -194,7 +194,7 @@ func main() {
for cptInstance := 0; cptInstance < len(recipesList); cptInstance++ {
instanceName := fmt.Sprint("gminstance_bitrise_", cptInstance)
wg.Add(1)
if len(adbSerialPortList) > 1 {
if len(adbSerialPortList) >= 1 {
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, adbSerialPortList[cptInstance])
} else {
go startInstanceAndConnect(&wg, recipesList[cptInstance], instanceName, "")
Expand Down

0 comments on commit ed2104a

Please sign in to comment.