mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
refactor: remove redundant err declarations (#32381)
This commit is contained in:
@ -52,8 +52,6 @@ func GetTemplateConfig(gitRepo *git.Repository, path string, commit *git.Commit)
|
||||
return GetDefaultTemplateConfig(), nil
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
treeEntry, err := commit.GetTreeEntryByPath(path)
|
||||
if err != nil {
|
||||
return GetDefaultTemplateConfig(), err
|
||||
|
Reference in New Issue
Block a user