cli/doctor: fix vestigial variable references
This commit is contained in:
parent
ba01e7a4f1
commit
829e1762b1
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue