fixed go vet issues

This commit is contained in:
Brad Rydzewski 2014-09-30 21:44:15 -07:00
parent 80f7523e9b
commit 892703b3f2
2 changed files with 7 additions and 1 deletions

View file

@ -123,10 +123,16 @@ Below are example values when running Drone locally. If you are running Drone on
you should replace `localhost` with your server hostname or address.
Homepage URL:
```
http://localhost:8000/
```
Authorization callback URL:
```
http://localhost:8000/api/auth/github.com
```
## Compatibility Issues

View file

@ -89,7 +89,7 @@ func (d *Director) GetAssignemnts() []*worker.Assignment {
defer d.Unlock()
assignments := []*worker.Assignment{}
for work, _worker := range d.started {
assignment := &worker.Assignment{work, _worker}
assignment := &worker.Assignment{Work: work, Worker: _worker}
assignments = append(assignments, assignment)
}
return assignments