Commit ce55924a authored by abadc0de's avatar abadc0de

lsp_mg_read: remove dead code, return nil on empty read

parent fbca54bc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment