Skip to content

Improve readability follows go-staticcheck #1227

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

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

zihengCat
Copy link
Contributor

@zihengCat zihengCat commented Jun 29, 2021

Description

Improve readability follows go-staticcheck:

  • Use division assignment operator in function parseByteYear.
  • Remove unnecessary break in dsn.go.
  • Use clear bytes.Equal API.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

@zihengCat
Copy link
Contributor Author

@julienschmidt
Hi, take a review pls :)

Copy link
Contributor

@shogo82148 shogo82148 left a comment

Choose a reason for hiding this comment

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

LGTM

@shogo82148
Copy link
Contributor

some test fail but it's not due to this pull request.
so I'm going to merge it.

@shogo82148 shogo82148 merged commit 21f789c into go-sql-driver:master Jun 30, 2021
@zihengCat zihengCat deleted the go-staticcheck-improve branch June 30, 2021 03:34
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.

2 participants