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

Ifelseswitch #973

Merged
merged 7 commits into from
Nov 18, 2019
Merged

Ifelseswitch #973

merged 7 commits into from
Nov 18, 2019

Conversation

tegk
Copy link
Contributor

@tegk tegk commented Nov 15, 2019

I refactored several if-else statement to more readable switch statements.
Furthermore I refactored a single which statement to a if statement.

server/server.go Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Nov 15, 2019

Coverage Status

Coverage decreased (-0.02%) to 91.957% when pulling 36cbb0e on tegk:ifelseswitch into e9e2cd4 on nats-io:master.

@ripienaar
Copy link
Collaborator

good stuff, certainly looks more readable to me. LGTM but we need to get another maintainer to chime in too I suppose

Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

I think you can put the "::" and "[::]" in the same case statement.

server/server.go Outdated Show resolved Hide resolved
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

Need go fmt

server/server.go Outdated Show resolved Hide resolved
Copy link
Member

@kozlovic kozlovic left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit dd8a94c into nats-io:master Nov 18, 2019
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