emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 895f9d14e5 193/500: Flatten "unless" form with no


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 895f9d14e5 193/500: Flatten "unless" form with no body
Date: Sat, 29 Jan 2022 08:27:05 -0500 (EST)

branch: elpa/nix-mode
commit 895f9d14e579b57084e8cccad86a4b3e50eddec3
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Flatten "unless" form with no body
---
 nix-company.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nix-company.el b/nix-company.el
index 3c9b6b66a1..9cc0648cf1 100644
--- a/nix-company.el
+++ b/nix-company.el
@@ -30,9 +30,9 @@ ARG company argument"
   (if (looking-at "[^a-zA-Z0-9'\\-_\\.]")
       (buffer-substring (point) (save-excursion (skip-chars-backward 
"a-zA-Z0-9'\\-_\\.")
                                                 (point)))
-    (unless (and (char-after)
-                 (string-match "[a-zA-Z0-9'\\-_]" (char-to-string 
(char-after)))
-                 ""))))
+    (and (char-after)
+         (string-match "[a-zA-Z0-9'\\-_]" (char-to-string (char-after)))
+         "")))
 
 (defun nix--get-company-buffer (&optional buffer)
   "Get the Nix repl buffer for company.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]