mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Fix fmt.ErrorF usage
This commit is contained in:
parent
b1dfa4a5a9
commit
0f737fd82c
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ func (c *Client) GetPermission(fullName string) (*RepoPerm, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(out.Values) == 0 {
|
if len(out.Values) == 0 {
|
||||||
return nil, fmt.Errorf("no permissions in repository ", fullName)
|
return nil, fmt.Errorf("no permissions in repository %s", fullName)
|
||||||
} else {
|
} else {
|
||||||
return out.Values[0], nil
|
return out.Values[0], nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue