From e934c4f02c24204f6725c7a6c5a2f38a9f9f21b6 Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 07:50:12 +0000 Subject: [PATCH] refactor(i18n): remove missing-key handler wrapper Co-Authored-By: Virgil --- core_service.go | 2 +- hooks.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core_service.go b/core_service.go index fd7ce11..d86e807 100644 --- a/core_service.go +++ b/core_service.go @@ -91,7 +91,7 @@ func (s *CoreService) ensureMissingKeyCollector() { if s.hookInstalled { return } - appendMissingKeyHandler(s.handleMissingKey) + AddMissingKeyHandler(s.handleMissingKey) s.hookInstalled = true } diff --git a/hooks.go b/hooks.go index fdd4402..168c134 100644 --- a/hooks.go +++ b/hooks.go @@ -154,10 +154,6 @@ func AddMissingKeyHandler(h MissingKeyHandler) { missingKeyHandler.Store(current) } -func appendMissingKeyHandler(h MissingKeyHandler) { - AddMissingKeyHandler(h) -} - func missingKeyHandlers() missingKeyHandlersState { v := missingKeyHandler.Load() if v == nil { -- 2.45.3