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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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