-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 some minor errors #2937
Fix some minor errors #2937
Conversation
@@ -285,7 +285,7 @@ func CheckNetWork(IP string, timeout int, cloudhubServer string, edgecoreServer | |||
if config != "" { | |||
edgeConfig, err := util.ParseEdgecoreConfig(config) | |||
if err != nil { | |||
err = fmt.Errorf("parse Edgecore config failed") | |||
return fmt.Errorf("parse Edgecore config failed") | |||
} else { |
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 can delete the else here.
if err != nil {
return fmt.Errorf("parse Edgecore config failed")
}
if cloudhubServer == "" {
cloudhubServer = edgeConfig.Modules.EdgeHub.WebSocket.Server
......
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.
Sorry,I thought you ask me delete whole else part. Get it now.
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.
The code still need gofmted.
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.
the extra spaces have been cleaered
a9842d9
to
4e17231
Compare
Signed-off-by: xujingjing <xujingjing_yewu@cmss.chinamobile.com>
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: xujingjing xujingjing_yewu@cmss.chinamobile.com
What type of PR is this?
/kind bug
What this PR does / why we need it:
some of the errors was not handled correctly.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: