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

Incorrect a condiction of redis HGet #66

Closed
logicad opened this issue Jun 8, 2022 · 0 comments · Fixed by #67
Closed

Incorrect a condiction of redis HGet #66

logicad opened this issue Jun 8, 2022 · 0 comments · Fixed by #67

Comments

@logicad
Copy link

logicad commented Jun 8, 2022

I found that a condition is incorrect when redis HGet requested

	// HGET
	if len(args) == 0 {
		member := args[0]
		s, err := c.HGet(k, member).Result()
		if err != nil {
			return nil, err
		}
		return resource.NewString(s), nil
	}

It seems that len(args) == 1 should be correct.

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 a pull request may close this issue.

1 participant