fix(cli): doctor: pluralizing single errors/warnings

This commit is contained in:
Nikola Bunjevac
2023-02-23 07:15:36 +01:00
committed by GitHub
parent bd0728e9b3
commit 7a8383c2d1

View File

@ -284,7 +284,7 @@ in."
(list doom-doctor--errors "error" 'red)))
(when (car msg)
(print! (color (nth 2 msg)
(if (cdr msg)
(if (cdar msg)
"There are %d %ss!"
"There is %d %s!")
(length (car msg)) (nth 1 msg)))))