diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-10-30 21:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 19:36:24 +0000 |
commit | f4d3aaeeb9e1b11c5495e4608a3f52f316c35758 (patch) | |
tree | e2601e11bc483e16e07afeaa0c31ad55021fe0d8 /services | |
parent | dd1f67491f5e2f798a537a61c082b1bf12e47635 (diff) | |
download | gitea-f4d3aaeeb9e1b11c5495e4608a3f52f316c35758.tar.gz gitea-f4d3aaeeb9e1b11c5495e4608a3f52f316c35758.zip |
refactor: remove redundant err declarations (#32381)
Diffstat (limited to 'services')
-rw-r--r-- | services/issue/template.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/services/issue/template.go b/services/issue/template.go index dd9d015f0f..4b0f1aa987 100644 --- a/services/issue/template.go +++ b/services/issue/template.go @@ -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 |