branch: elpa/nix-mode
commit 895f9d14e579b57084e8cccad86a4b3e50eddec3
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>
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.