Skip to content

Commit

Permalink
fix(init): squashed some luacheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
NTBBloodbath committed Jul 25, 2021
1 parent 3b84096 commit d5a0b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/rest-nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ local function get_importfile(bufnr, start_line, stop_line)
go_to_line(bufnr, oldpos[2])

if import_line > 0 then
local fileimport_string = ''
local fileimport_line = {}
local fileimport_string
local fileimport_line
fileimport_line = vim.api.nvim_buf_get_lines(
bufnr,
import_line - 1,
Expand Down Expand Up @@ -121,7 +121,7 @@ local function get_body(bufnr, start_line, stop_line)
return importfile
end

local lines = {}
local lines
local body = ''
-- nvim_buf_get_lines is zero based and end-exclusive
-- but start_line and stop_line are one-based and inclusive
Expand Down

0 comments on commit d5a0b5e

Please sign in to comment.