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 eq = assert.are.same

View File

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