mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-04 22:57:34 -04:00
remove ineffectual assignment to i (#30985)
This commit is contained in:
parent
08bae4cfd0
commit
b9017f7d11
@ -39,7 +39,7 @@ var ErrNotValidHook = errors.New("not a valid Git hook")
|
|||||||
|
|
||||||
// IsValidHookName returns true if given name is a valid Git hook.
|
// IsValidHookName returns true if given name is a valid Git hook.
|
||||||
func IsValidHookName(name string) bool {
|
func IsValidHookName(name string) bool {
|
||||||
for hn, _ := range GetHookNames() {
|
for hn := range GetHookNames() {
|
||||||
if hn == name {
|
if hn == name {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@ -118,7 +118,6 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
i++
|
|
||||||
}
|
}
|
||||||
return hooks, nil
|
return hooks, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user