Skip to content

Commit

Permalink
chore: autoformat with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
filipiz authored and github-actions[bot] committed Jan 17, 2025
1 parent 6fc7375 commit 3016071
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/rest-nvim/parser/dotenv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ function M.parse(path, setter)
local vars_tbl = vim.split(file_contents, "\n", { trimempty = true })
logger.debug(vars_tbl)
for _, var in ipairs(vars_tbl) do
if var:match("^%s*#.*") then goto continue end
if var:match("^%s*#.*") then
goto continue
end
local variable_name, variable_value = var:match("([^#=%s]+)%s*=%s*(.*)")
if variable_name then
variable_value = variable_value:match("(.*)(%s#.*)") or variable_value
Expand Down

0 comments on commit 3016071

Please sign in to comment.