1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add io.Closer guidelines (#29387)

Co-authored-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
KN4CK3R
2024-02-25 14:05:23 +01:00
committed by GitHub
parent 0676bf52f9
commit ad0a34b492
7 changed files with 16 additions and 9 deletions

View File

@@ -87,8 +87,5 @@ func (i *Indexer) Close() {
if i == nil {
return
}
if i.Client == nil {
return
}
i.Client = nil
}