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: check if usr is nil #8

Merged
merged 3 commits into from
Dec 31, 2020
Merged

fix: check if usr is nil #8

merged 3 commits into from
Dec 31, 2020

Conversation

bestgopher
Copy link
Contributor

The usr is nil when user.Current() return an error, so it will panic when call usr.Username="root".

@dwisiswant0
Copy link
Collaborator

Good spot, @bestgopher! We'll review as soon as possible.

Copy link
Collaborator

@dwisiswant0 dwisiswant0 left a comment

Choose a reason for hiding this comment

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

Hi, @bestgopher. Can you please keep that identations at constant.go like before?

@bestgopher
Copy link
Contributor Author

Hi, @bestgopher. Can you please keep that identations at constant.go like before?

Done! But I think every golang file should be formatted by gofmt.

@dwisiswant0
Copy link
Collaborator

Hi, @bestgopher! Thanks for your contributions to Kitabisa SSB, merging now.

@dwisiswant0 dwisiswant0 merged commit 5233e76 into pwnesia:master Dec 31, 2020
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