mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 21:44:44 +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.
|
you should replace `localhost` with your server hostname or address.
|
||||||
|
|
||||||
Homepage URL:
|
Homepage URL:
|
||||||
|
|
||||||
|
```
|
||||||
http://localhost:8000/
|
http://localhost:8000/
|
||||||
|
```
|
||||||
|
|
||||||
Authorization callback URL:
|
Authorization callback URL:
|
||||||
|
|
||||||
|
```
|
||||||
http://localhost:8000/api/auth/github.com
|
http://localhost:8000/api/auth/github.com
|
||||||
|
```
|
||||||
|
|
||||||
## Compatibility Issues
|
## Compatibility Issues
|
||||||
|
|
||||||
|
|
|
@ -89,7 +89,7 @@ func (d *Director) GetAssignemnts() []*worker.Assignment {
|
||||||
defer d.Unlock()
|
defer d.Unlock()
|
||||||
assignments := []*worker.Assignment{}
|
assignments := []*worker.Assignment{}
|
||||||
for work, _worker := range d.started {
|
for work, _worker := range d.started {
|
||||||
assignment := &worker.Assignment{work, _worker}
|
assignment := &worker.Assignment{Work: work, Worker: _worker}
|
||||||
assignments = append(assignments, assignment)
|
assignments = append(assignments, assignment)
|
||||||
}
|
}
|
||||||
return assignments
|
return assignments
|
||||||
|
|
Loading…
Reference in a new issue