Skip to content

Commit

Permalink
Fix wrong allocation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Beck committed Nov 5, 2020
1 parent c2c140a commit 949265d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func GetExecQueue() *ExecutionQueue {
func (eq *ExecutionQueue) GetRepositories() []string {
eq.mutex.Lock()
defer eq.mutex.Unlock()
repositories := make([]string, len(execution.queues))
repositories := make([]string, 0, len(execution.queues))
for repository := range execution.queues {
repositories = append(repositories, repository)
}
Expand Down

0 comments on commit 949265d

Please sign in to comment.