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

ArrayEach correct behaviour #262

Open
salmonix opened this issue Apr 7, 2023 · 0 comments
Open

ArrayEach correct behaviour #262

salmonix opened this issue Apr 7, 2023 · 0 comments

Comments

@salmonix
Copy link

salmonix commented Apr 7, 2023

Thanks for the great lib, first of all.
The documentation for ArrayEach says:

// ArrayEach is used when iterating arrays, accepts a callback function with the same return arguments as `Get`.

However, at line 1042 the callback function is called this way:

		if t != NotExist {
			cb(v, t, offset+o-len(v), e)
		}

It seems that there is no return value checked from the callback function - or I overlooked something. Could you confirm it?
I hit the issue because I do some conversion in the callback function and in case it returns err I want to stop executing the rest.

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

No branches or pull requests

1 participant