mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-19 20:44:14 -04:00
remove ineffectual assignment to i (#30985)
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user