From 829e1762b1df228b953c591a3fa1091862b9caaf Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 10 Nov 2019 04:50:47 -0500 Subject: [PATCH] cli/doctor: fix vestigial variable references --- core/cli/doctor.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/cli/doctor.el b/core/cli/doctor.el index dcc07ccd3..e568ff3c9 100644 --- a/core/cli/doctor.el +++ b/core/cli/doctor.el @@ -98,11 +98,10 @@ in." ;; Check for oversized problem files in cache that may cause unusual/tremendous ;; delays or freezing. This shouldn't happen often. (dolist (file (list "savehist" "projectile.cache")) - (when-let (size (ignore-errors (doom-file-size path))) + (when-let (size (ignore-errors (doom-file-size file doom-cache-dir))) (when (> size 1048576) ; larger than 1mb (warn! "%s is too large (%.02fmb). This may cause freezes or odd startup delays" - (relpath path) - (/ size 1024)) + file (/ size 1024)) (explain! "Consider deleting it from your system (manually)")))) (unless (ignore-errors (executable-find doom-projectile-fd-binary))