Fixing linting and formatting checks.

This commit is contained in:
mwishoff 2023-12-06 16:23:40 -08:00
parent 9ff11a310a
commit 4bd2c4c792
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
local utils = require("harpoon.test.utils") --local utils = require("harpoon.test.utils")
local Logger = require("harpoon.logger") local Logger = require("harpoon.logger")
local eq = assert.are.same local eq = assert.are.same

View File

@ -1,7 +1,7 @@
local M = {} local M = {}
function M.trim(str) function M.trim(str)
return str:gsub("^%s+", ""):gsub("%s+$", "") return str:gsub("^%s+", ""):gsub("%s+$", "")
end end
function M.remove_duplicate_whitespace(str) function M.remove_duplicate_whitespace(str)
return str:gsub("%s+", " ") return str:gsub("%s+", " ")
@ -11,8 +11,8 @@ function M.split(str, sep)
if sep == nil then if sep == nil then
sep = "%s" sep = "%s"
end end
local t={} local t = {}
for s in string.gmatch(str, "([^"..sep.."]+)") do for s in string.gmatch(str, "([^" .. sep .. "]+)") do
table.insert(t, s) table.insert(t, s)
end end
return t return t