Skip to content

Commit 625ff29

Browse files
committed
chore: fix linting
1 parent 8ab4393 commit 625ff29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/remote-sshfs/connections.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ M.mount_host = function(host, mount_dir, ask_pass)
137137
assert(ssh_known_hosts, "ssh_known_hosts is required")
138138

139139
local hostname = host["HostName"] or host["Name"]
140-
140+
141141
-- Build the hostname string for known_hosts lookup
142142
local lookup_host = hostname
143143
if host["Port"] and host["Port"] ~= "22" then
@@ -158,7 +158,7 @@ M.mount_host = function(host, mount_dir, ask_pass)
158158
table.insert(scan_cmd, host["Port"])
159159
end
160160
table.insert(scan_cmd, hostname)
161-
161+
162162
local scan_result = vim.fn.system(scan_cmd)
163163
if vim.v.shell_error ~= 0 or scan_result == "" then
164164
vim.notify("Could not retrieve host keys for " .. hostname, vim.log.levels.ERROR)
@@ -207,14 +207,14 @@ M.mount_host = function(host, mount_dir, ask_pass)
207207
table.insert(scan_cmd_final, host["Port"])
208208
end
209209
table.insert(scan_cmd_final, hostname)
210-
210+
211211
local result = vim.fn.system(scan_cmd_final)
212212
if vim.v.shell_error == 0 and result ~= "" then
213213
local file_handle = io.open(ssh_known_hosts, "a")
214214
if file_handle then
215215
file_handle:write(result)
216-
if not result:match("\n$") then
217-
file_handle:write("\n")
216+
if not result:match "\n$" then
217+
file_handle:write "\n"
218218
end
219219
file_handle:close()
220220
vim.notify("Host key added for " .. hostname, vim.log.levels.INFO)

0 commit comments

Comments
 (0)