From 3ac03293a9d6c06266452cd11a70c0a5397d24ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20K=C3=A4stner?= Date: Sat, 1 May 2021 23:46:56 +0200 Subject: [PATCH] os: Remove fall-back on function argument As `release-file` is used only once in the function, we don't need to set its default value via `setq' if it is `nil`. --- eshell-info-banner.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eshell-info-banner.el b/eshell-info-banner.el index 6d09734..fdffd3a 100644 --- a/eshell-info-banner.el +++ b/eshell-info-banner.el @@ -297,9 +297,8 @@ the warning face with a battery level of 25% or less." "Read the operating system from the given RELEASE-FILE. If RELEASE-FILE is nil, use '/etc/os-release'." - (setq release-file (or release-file "/etc/os-release")) (with-temp-buffer - (insert-file-contents release-file) + (insert-file-contents (or release-file "/etc/os-release")) (goto-char (point-min)) (re-search-forward "PRETTY_NAME=\"\\(.*\\)\"") (match-string 1)))