From 4bd2c4c792b4583f88ce47a61a1e7658e9545aa3 Mon Sep 17 00:00:00 2001 From: mwishoff Date: Wed, 6 Dec 2023 16:23:40 -0800 Subject: [PATCH] Fixing linting and formatting checks. --- lua/harpoon/test/logger_spec.lua | 2 +- lua/harpoon/utils.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/harpoon/test/logger_spec.lua b/lua/harpoon/test/logger_spec.lua index 4d95a49..d97054d 100644 --- a/lua/harpoon/test/logger_spec.lua +++ b/lua/harpoon/test/logger_spec.lua @@ -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 diff --git a/lua/harpoon/utils.lua b/lua/harpoon/utils.lua index f99df98..de632c3 100644 --- a/lua/harpoon/utils.lua +++ b/lua/harpoon/utils.lua @@ -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