summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-04 06:03:07 +0300
committerThanos Apollo <[email protected]>2023-07-04 06:03:07 +0300
commitb762e567bfca76647320c2e0305b81b5a1e9e5a9 (patch)
tree905271f24495b2b6fd443d6186d4ea9d288691b3
parent0e862089d4cd4dff280aabb97c8b71f21dbced06 (diff)
fix: Unused lexical variable
Add _ for 'operation' and 'where' Change 'string-equal to 'equal(personal preference)
-rw-r--r--yeetube.el4
1 files 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))))))