From 2fb3b1470da2315aa7fbffd5528be12a3e8eb1b7 Mon Sep 17 00:00:00 2001 From: Kier Davis Date: Sat, 6 Mar 2021 02:16:26 +0000 Subject: [PATCH] Clean whitespace --- Core.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core.lua b/Core.lua index be8890e..b107e4e 100644 --- a/Core.lua +++ b/Core.lua @@ -3,20 +3,20 @@ if CanICraftThis == nil then CanICraftThis = {} end CanICraftThis.addonName = "CanICraftThis" CanICraftThis.savedVarsName = CanICraftThis.addonName .. "Vars" - function CanICraftThis.reportInfo(message) d("[" .. CanICraftThis.addonName .. "] " .. message) end + function CanICraftThis.reportUnexpected(message) error("Unexpected situation!\n" .. message .. "\nThis typically indicates a bug in the " .. CanICraftThis.addonName .. " add-on.") end + function CanICraftThis.assert(condition, conditionString) if not condition then CanICraftThis.reportUnexpected("Assertion failed: " .. conditionString) end end - function CanICraftThis.literalPattern(text) return string.gsub(string.lower(text), "([^a-zA-Z0-9 ])", "%%%1") end