You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like stat and ret should be local in this code and not global.
This is a common mistake in lua that happens easily I guess. Found by lua language server autocomplete.
To make them local would make them encapsulated, and you avoid risk - people using the unintentionally used variables, or overwriting people's globals.
It looks like
stat
andret
should be local in this code and not global.This is a common mistake in lua that happens easily I guess. Found by lua language server autocomplete.
To make them local would make them encapsulated, and you avoid risk - people using the unintentionally used variables, or overwriting people's globals.
Link:
plenary.nvim/lua/plenary/async_lib/util.lua
Lines 292 to 302 in 08e3019
The text was updated successfully, but these errors were encountered: