mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-01 14:56:30 +00:00
Break early when found
This commit is contained in:
parent
633fb6b64e
commit
431ca79733
@ -193,6 +193,7 @@ func (te *TreeEntry) GetPathInRepo() string {
|
||||
for _, entry := range current.ptree.entries {
|
||||
if entry.ID == current.ID {
|
||||
path = entry.name + "/" + path
|
||||
break
|
||||
}
|
||||
}
|
||||
current = current.ptree
|
||||
|
Loading…
Reference in New Issue
Block a user