mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
fixed go vet issues
This commit is contained in:
parent
80f7523e9b
commit
892703b3f2
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue