branch: externals/lin
commit e232866e299ea5d6c5fdc0c3a9b16cb4a988de31
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Simplify lin--mode-disable
    
    The when there is not needed: we will disable it anyway.
---
 lin.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lin.el b/lin.el
index dff9e7af0e..f9febd7993 100644
--- a/lin.el
+++ b/lin.el
@@ -385,10 +385,9 @@ is a member of `lin-mode-hooks'."
       (lin-mode 1))))
 
 (defun lin--mode-disable (buffer)
-  "Disable `lin-mode' if already enabled in BUFFER."
+  "Disable `lin-mode' in BUFFER."
   (with-current-buffer buffer
-    (when lin-mode
-      (lin-mode -1))))
+    (lin-mode -1)))
 
 (defun lin--buffer-hidden-p (buffer)
   "Return non-nil if BUFFER is hidden."

Reply via email to