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

Clean up status codes. #2479

Closed

Conversation

Alireza-Ta
Copy link

Hey
Just change all http status codes to numerical format in server directory.

@CLAassistant
Copy link

CLAassistant commented Sep 5, 2018

CLA assistant check
All committers have signed the CLA.

@tonivj5
Copy link

tonivj5 commented Sep 5, 2018

why??

@metalmatze
Copy link

I think this is quite the opposite of what you want to do in Go. The constants are way more descriptive and reference the same numbers you've just replaced them with.

@Alireza-Ta
Copy link
Author

Well, i'm new to go!
I thought if they be in one format would be fine, however you can ignore it if it's a bad practice!

@metalmatze
Copy link

@Alireza-Ta Thanks for taking the time to contribute nevertheless! I hope you learned something, keep the PRs coming. 👍

@metalmatze metalmatze closed this Sep 5, 2018
@metalmatze
Copy link

Oh wait. You actually want to use the constants. I'm not really sure how important that is to @bradrydzewski. 🤔

@tboerger
Copy link

tboerger commented Sep 5, 2018

No, I had also been confused. Look at his first commit: 8183907

@Alireza-Ta
Copy link
Author

@metalmatze You said using consts is better than just plain numbers because of that I changed it!

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.

None yet

5 participants