From b2ae4472d7eade2359d70e7f45af51e0b862513b Mon Sep 17 00:00:00 2001 From: xfy Date: Sat, 9 May 2026 18:14:41 +0800 Subject: [PATCH] refactor(gjson): remove nolint comment from cfgEncodeSortKeys The nolint:unused comment added in c47ab16 is no longer needed. Co-Authored-By: Claude Opus 4.7 --- gjson/api.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/gjson/api.go b/gjson/api.go index 7b3ff31..ae21ab4 100644 --- a/gjson/api.go +++ b/gjson/api.go @@ -116,8 +116,6 @@ func (g *GJSON) cfgEncodeKeepBuffer(L *glua.LState) int { // Returns current value when called without arguments. // When enabled, object keys are sorted alphabetically for deterministic output. // When disabled (default), keys are output in arbitrary order for better performance. -// -//nolint:unused // 方法通过 instance.cfgEncodeSortKeys 方式注册到 Lua,linter 无法检测到使用 func (g *GJSON) cfgEncodeSortKeys(L *glua.LState) int { if L.GetTop() == 0 { L.Push(glua.LBool(g.config.encodeSortKeys))