From c7c97c469f80482a6eb2248a878ff8dd313b5769 Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 5 Apr 2024 16:55:34 +0800 Subject: [PATCH] optimize code --- app/plugins/wphandle/enlightjs/enlighterjs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins/wphandle/enlightjs/enlighterjs.go b/app/plugins/wphandle/enlightjs/enlighterjs.go index e581d8a..e6dba10 100644 --- a/app/plugins/wphandle/enlightjs/enlighterjs.go +++ b/app/plugins/wphandle/enlightjs/enlighterjs.go @@ -58,7 +58,7 @@ func EnlighterJS(h *wp.Handle) { Linehover: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-linehover", true), RawcodeDbclick: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-rawcodedbclick", true), TextOverflow: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-textoverflow", "break"), - Linenumbers: maps.GetStrAnyValWithDefaults[bool](opp, "enlighterjs-linenumbers", true), + Linenumbers: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-linenumbers", true), Theme: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-theme", "enlighter"), Language: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-language", "generic"), RetainCssClasses: maps.GetStrAnyValWithDefaults(opp, "enlighterjs-retaincss", false),