Skip to content

Conversation

willmafh
Copy link
Contributor

ngx_http_lua_socket_push_input_data will always succeed and therefore change its signature to void return type, it's unnecessary to do error check of it.

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

zhuizhuhaomeng
zhuizhuhaomeng previously approved these changes Nov 6, 2024
@zhuizhuhaomeng
Copy link
Contributor

@willmafh willmafh changed the title fix: unnecessary to do error check bugfix: unnecessary to do error check Nov 7, 2024
@willmafh
Copy link
Contributor Author

There are build error: https://app.travis-ci.com/github/openresty/lua-nginx-module/jobs/627512678#L4413

@zhuizhuhaomeng build error fixed, ping for a second review!

@zhuizhuhaomeng zhuizhuhaomeng merged commit ee3dd98 into openresty:master Mar 2, 2025
2 of 3 checks passed
@willmafh willmafh deleted the code-simplification branch July 16, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants