Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant declaration of namespace slice #1428

Merged
merged 1 commit into from
May 3, 2017

Conversation

harche
Copy link

@harche harche commented Apr 28, 2017

Namespaces slice is declared twice. Let's keep list
namespaces at one place instead of duplicating it. Should
there be any change in future in the number of namespaces
or anything like that, we just have to change in one
location.

Signed-off-by: Harshal Patil [email protected]

@@ -64,12 +64,12 @@ func IsNamespaceSupported(ns NamespaceType) bool {

func NamespaceTypes() []NamespaceType {
return []NamespaceType{
NEWUSER, // Keep user NS always first, don't move it.
Copy link
Member

Choose a reason for hiding this comment

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

Can you finish re-ordering this list to match the one that was deleted?

Copy link
Author

Choose a reason for hiding this comment

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

@crosbymichael done. Thanks.

@harche harche force-pushed the dedupe_ns_array branch from bf89206 to a4762e9 Compare May 2, 2017 04:32
@harche harche force-pushed the dedupe_ns_array branch from a4762e9 to 22953c1 Compare May 2, 2017 04:35
@TomSweeneyRedHat
Copy link

LGTM

@crosbymichael
Copy link
Member

crosbymichael commented May 2, 2017

LGTM

Thanks @harche

Approved with PullApprove

@mrunalp
Copy link
Contributor

mrunalp commented May 3, 2017

LGTM

Approved with PullApprove

@mrunalp mrunalp merged commit 992a5be into opencontainers:master May 3, 2017
@harche harche deleted the dedupe_ns_array branch July 23, 2017 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants