aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_base_nogogit.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_base_nogogit.go')
-rw-r--r--modules/git/repo_base_nogogit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_base_nogogit.go b/modules/git/repo_base_nogogit.go
index e0f2d563b3..414e4eb1a8 100644
--- a/modules/git/repo_base_nogogit.go
+++ b/modules/git/repo_base_nogogit.go
@@ -87,7 +87,7 @@ func (repo *Repository) CatFileBatchCheck(ctx context.Context) (WriteCloserError
// Close this repository, in particular close the underlying gogitStorage if this is not nil
func (repo *Repository) Close() (err error) {
if repo == nil {
- return
+ return nil
}
if repo.batchCancel != nil {
repo.batchCancel()