From f2b1da53925a686e9ebe7e3a01e51708334bf1a7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 23 Dec 2024 22:30:21 -0800 Subject: [PATCH] Fix bug --- services/repository/files/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/repository/files/tree.go b/services/repository/files/tree.go index 3b31275bde..b292b5e549 100644 --- a/services/repository/files/tree.go +++ b/services/repository/files/tree.go @@ -140,7 +140,7 @@ func GetTreeList(ctx context.Context, repo *repo_model.Repository, treePath stri // Check that the path given in opts.treePath is valid (not a git path) cleanTreePath := CleanUploadFileName(treePath) if cleanTreePath == "" && treePath != "" { - return nil, models.ErrFilenameInvalid{ + return nil, ErrFilenameInvalid{ Path: treePath, } }