-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
LGTM |
if err != nil { | ||
return te.name | ||
} | ||
entries, err := tree.ListEntries() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when err != nil?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If err != nil, entries variable will be nil.
So i managed that simply with checking lenght of entries ( if len(entries) == 1 ).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then it's better to _ (underscore) the error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You right. I fix it.
Some nitpicking but could you squash your 2 commits into 1? |
LGTM I'll squash |
Fixes go-gitea#22 Missing mode in parseTreeData (tree.go)
Simple implementation of Folder Jumping
Comes with this PR