From b762e567bfca76647320c2e0305b81b5a1e9e5a9 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 4 Jul 2023 06:03:07 +0300 Subject: fix: Unused lexical variable Add _ for 'operation' and 'where' Change 'string-equal to 'equal(personal preference) --- yeetube.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yeetube.el b/yeetube.el index f9a5bef..5d61912 100644 --- a/yeetube.el +++ b/yeetube.el @@ -229,7 +229,7 @@ then run this command interactively." "\n~C-c C-o~ -> Open In Browser\n" "\n~q~ -> Quit\n"))) -(defun yeetube-update-info (symbol-name new-value operation where) +(defun yeetube-update-info (symbol-name new-value _operation _where) "Update information for SYMBOL-NAME with NEW-VALUE. SYMBOL-NAME is the name of the symbol to update. @@ -254,7 +254,7 @@ OPERATION & WHERE are required to work with 'add-variable-watcher." (goto-char (point-min)) (search-forward yeetube-results-prefix) (setq-local buffer-read-only t) - (unless (string-equal (buffer-name) "*Yeetube Search*") + (unless (equal (buffer-name) "*Yeetube Search*") (switch-to-buffer (other-buffer)))))) -- cgit v1.2.3