Skip to content

Conversation

ethantkoenig
Copy link
Member

Move duplicated code in RepoIDAssignment and RepoAssignment handlers to a helper function. Also removed an unused var and fix a typo

@ethantkoenig ethantkoenig force-pushed the refactor/repo_handler branch from be7b7e9 to a79b704 Compare October 4, 2017 19:32
@lafriks lafriks added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Oct 4, 2017
@lafriks lafriks added this to the 1.3.0 milestone Oct 4, 2017
@codecov-io
Copy link

codecov-io commented Oct 4, 2017

Codecov Report

Merging #2657 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@ ## master #2657 +/- ## ======================================= Coverage 27.13% 27.13% ======================================= Files 86 86 Lines 17061 17061 ======================================= Hits 4629 4629 Misses 11754 11754 Partials 678 678

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4325320...b93b2de. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 4, 2017
@daviian
Copy link
Member

daviian commented Oct 4, 2017

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 4, 2017
EarlyResponseForGoGetMeta(ctx)
return
}
ctx.Error(404, "no access right")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to ctx.Handle(404, "no access right", nil)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lafriks
Copy link
Member

lafriks commented Oct 5, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 5, 2017
@lafriks lafriks merged commit 67e1c29 into go-gitea:master Oct 5, 2017
@ethantkoenig ethantkoenig deleted the refactor/repo_handler branch October 5, 2017 22:49
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/refactoring Existing code has been cleaned up. There should be no new functionality.

5 participants