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

Fix golint error #606

Merged
merged 3 commits into from
Feb 7, 2018
Merged

Fix golint error #606

merged 3 commits into from
Feb 7, 2018

Conversation

gongweibao
Copy link
Collaborator

@gongweibao gongweibao commented Feb 7, 2018

Fix #609

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

Need an issue to describe. Is https://github.com/PaddlePaddle/cloud/blob/develop/.travis.yml#L13 this line cause that lint error can still pass on CI?

ResourceStateFailed = "failed"
ResourceStateSucceeded = "succeeded"
// ResourceStateNone is the none name of ResourceState.
ResourceStateNone ResourceState = ""
Copy link
Member

Choose a reason for hiding this comment

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

ResourceStateNone is the initial state of training job

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

// ResourceStateNone is the none name of ResourceState.
ResourceStateNone ResourceState = ""
// ResourceStateStarting is the starting name of ResourceState.
ResourceStateStarting = "starting"
Copy link
Member

Choose a reason for hiding this comment

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

ResourceStateStarting is the starting state of training job

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

// ResourceStateStarting is the starting name of ResourceState.
ResourceStateStarting = "starting"
// ResourceStateRunning is the running name of ResourceState.
ResourceStateRunning = "running"
Copy link
Member

Choose a reason for hiding this comment

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

ResourceStateStarting is the running state of training job

// ResourceStateRunning is the running name of ResourceState.
ResourceStateRunning = "running"
// ResourceStateFailed is the failed name of ResourceState.
ResourceStateFailed = "failed"
Copy link
Member

Choose a reason for hiding this comment

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

ResourceStateFailed is the failed state of training job

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

// ResourceStateFailed is the failed name of ResourceState.
ResourceStateFailed = "failed"
// ResourceStateSucceeded is the succeeded name of ResourceState
ResourceStateSucceeded = "succeeded"
Copy link
Member

Choose a reason for hiding this comment

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

ResourceStateSucceeded is the succeeded state of training job

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@gongweibao
Copy link
Collaborator Author

gongweibao commented Feb 7, 2018

@typhoonzero I create an ISSUE and fix it yet.

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM!

@gongweibao gongweibao merged commit 585b188 into PaddlePaddle:develop Feb 7, 2018
@gongweibao gongweibao deleted the fixgolint branch February 7, 2018 06:20
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.

3 participants