Skip to content
Snippets Groups Projects
Commit ce55924a authored by abadc0de's avatar abadc0de
Browse files

lsp_mg_read: remove dead code, return nil on empty read

parent fbca54bc
No related branches found
No related tags found
No related merge requests found
......@@ -4070,7 +4070,7 @@ static int lsp_mg_read(lua_State *L) {
char buf[1024];
int len = mg_read(conn, buf, sizeof(buf));
lua_settop(L, 0);
if (!len) return 0;
lua_pushlstring(L, buf, len);
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment