test before commit is the advice, one end too many ...

CrazyDutchGuy [06-28-14 - 17:23]
test before commit is the advice, one end too many ...
Filename
LibSort-1.0/LibSort-1.0.lua
diff --git a/LibSort-1.0/LibSort-1.0.lua b/LibSort-1.0/LibSort-1.0.lua
index 908825e..cb5bd4c 100644
--- a/LibSort-1.0/LibSort-1.0.lua
+++ b/LibSort-1.0/LibSort-1.0.lua
@@ -121,11 +121,10 @@ end
 function LibSort:Loaded(event, name)
    	if name ~= "ZO_Ingame" then return end

-		ZO_PreHook(PLAYER_INVENTORY, "ApplySort", function(self, inventoryType) LibSort:ProcessInventory(inventoryType) end)
-		LibSort:SetupArrows()
+	ZO_PreHook(PLAYER_INVENTORY, "ApplySort", function(self, inventoryType) LibSort:ProcessInventory(inventoryType) end)
+	LibSort:SetupArrows()

-		EVENT_MANAGER:UnregisterForEvent("LibSortLoaded", EVENT_ADD_ON_LOADED)
-	end
+	EVENT_MANAGER:UnregisterForEvent("LibSortLoaded", EVENT_ADD_ON_LOADED)
 end

 EVENT_MANAGER:RegisterForEvent("LibSortLoaded", EVENT_ADD_ON_LOADED, function(...) LibSort:Loaded(...) end)