Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Implementation of Folder Jumping #23

Merged
merged 2 commits into from
Dec 28, 2016
Merged

Implementation of Folder Jumping #23

merged 2 commits into from
Dec 28, 2016

Conversation

sriio
Copy link

@sriio sriio commented Dec 27, 2016

Simple implementation of Folder Jumping

Comes with this PR

@andreynering
Copy link

LGTM

if err != nil {
return te.name
}
entries, err := tree.ListEntries()
Copy link
Member

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?

Copy link
Author

@sriio sriio Dec 28, 2016

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 ).

Copy link
Member

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

Copy link
Author

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.

@Bwko
Copy link
Member

Bwko commented Dec 28, 2016

Some nitpicking but could you squash your 2 commits into 1?

@bkcsoft
Copy link
Member

bkcsoft commented Dec 28, 2016

LGTM I'll squash

@bkcsoft bkcsoft merged commit 7880430 into go-gitea:master Dec 28, 2016
cez81 pushed a commit to cez81/git that referenced this pull request Apr 1, 2017
Fixes go-gitea#22 Missing mode in parseTreeData (tree.go)
cez81 pushed a commit to cez81/git that referenced this pull request Apr 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants