Skip to content

Commit f2b1da5

Browse files
committed
Fix bug
1 parent 3b3eaec commit f2b1da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/files/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func GetTreeList(ctx context.Context, repo *repo_model.Repository, treePath stri
140140
// Check that the path given in opts.treePath is valid (not a git path)
141141
cleanTreePath := CleanUploadFileName(treePath)
142142
if cleanTreePath == "" && treePath != "" {
143-
return nil, models.ErrFilenameInvalid{
143+
return nil, ErrFilenameInvalid{
144144
Path: treePath,
145145
}
146146
}

0 commit comments

Comments
 (0)