1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-02 15:09:33 -05:00

remove ineffectual assignment to i (#30985)

This commit is contained in:
József Fényes 2024-05-23 14:40:33 +02:00
parent 08bae4cfd0
commit b9017f7d11

View File

@ -39,7 +39,7 @@ var ErrNotValidHook = errors.New("not a valid Git hook")
// IsValidHookName returns true if given name is a valid Git hook.
func IsValidHookName(name string) bool {
for hn, _ := range GetHookNames() {
for hn := range GetHookNames() {
if hn == name {
return true
}
@ -118,7 +118,6 @@ func ListHooks(repoPath string) (_ []*Hook, err error) {
if err != nil {
return nil, err
}
i++
}
return hooks, nil
}