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

change: refactor and lint code #2

Merged
merged 4 commits into from
Oct 19, 2020

Conversation

khangnkn
Copy link
Contributor

@khangnkn khangnkn commented Oct 9, 2020

This MR is to refactor and lint code

  • Remove vendor directory and use go mod instead
  • Using golangci-lint to lint code base.
  • Add unittest then refactor some parts of package keyvalue

+ remove vendor directory
+ use go mod instead
+ reduce code base in repository
+ create unittest
+ change some error handling in keyvalue package
@@ -80,10 +79,10 @@ func (s *sqlStore) Get(key string) (string, error) {

var value string
err = stmt.QueryRow(key).Scan(&value)
if errors.Is(err, sql.ErrNoRows) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice catch 👍

@ltpquang ltpquang merged commit d6d984d into zalopay-oss:master Oct 19, 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.

2 participants