From 6af25565d4d2c6a2914905b59ae5fa607b1472a5 Mon Sep 17 00:00:00 2001 From: Joe Lim <50560759+joelim-work@users.noreply.github.com> Date: Sat, 13 Jan 2024 23:40:02 +1100 Subject: [PATCH] Simplify eval for `tempmarks` option (#1571) --- eval.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/eval.go b/eval.go index 261aebc5..59bfc621 100644 --- a/eval.go +++ b/eval.go @@ -840,11 +840,7 @@ func (e *setExpr) eval(app *app, args []string) { case "tagfmt": gOpts.tagfmt = e.val case "tempmarks": - if e.val != "" { - gOpts.tempmarks = "'" + e.val - } else { - gOpts.tempmarks = "'" - } + gOpts.tempmarks = "'" + e.val case "timefmt": gOpts.timefmt = e.val case "truncatechar":