From 0a80d806fe9279308df2dd4960b95c2a35273ed5 Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Thu, 25 Feb 2021 12:35:15 +0100 Subject: * nroam.el (nroam--insert-backlinks-heading): Simplify --- nroam.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'nroam.el') diff --git a/nroam.el b/nroam.el index 01ba132..5030345 100644 --- a/nroam.el +++ b/nroam.el @@ -210,11 +210,9 @@ Make the region inserted by BODY read-only, and marked with (defun nroam--insert-backlinks-heading (count) "Insert the heading for the backlinks section with a COUNT." - (insert (if (= count 0) - "* No linked reference\n" - (format "* %s %s\n" - count - (nroam--pluralize count "linked reference"))))) + (insert (format "* %s %s\n" + (if (= count 0) "No" count) + (nroam--pluralize count "linked reference")))) (defun nroam--insert-backlink-group (group) "Insert all backlinks in GROUP." -- cgit v1.2.3-54-g00ecf