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

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

[nongnu] elpa/dart-mode f3a7c7b 122/192: Properly tell flycheck when the


From: ELPA Syncer
Subject: [nongnu] elpa/dart-mode f3a7c7b 122/192: Properly tell flycheck when there are no errors
Date: Sun, 29 Aug 2021 11:02:03 -0400 (EDT)

branch: elpa/dart-mode
commit f3a7c7b71fb12d02fa02700bc10426cb10010d01
Author: Natalie Weizenbaum <nweiz@google.com>
Commit: Natalie Weizenbaum <nweiz@google.com>

    Properly tell flycheck when there are no errors
    
    Closes #46
---
 dart-mode.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dart-mode.el b/dart-mode.el
index 99dd51e..3bee663 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -2,7 +2,7 @@
 
 ;; Author: Natalie Weizenbaum
 ;; URL: https://github.com/nex3/dart-mode
-;; Version: 1.0.2
+;; Version: 1.0.3
 ;; Package-Requires: ((emacs "24.5") (cl-lib "0.5") (dash "2.10.0") (flycheck 
"0.23") (s "1.10"))
 ;; Keywords: language
 
@@ -1036,10 +1036,10 @@ SUBSCRIPTION is an opaque object provided by
 The errors contained in RESPONSE from Dart analysis server run on BUFFER are
 reported to CALLBACK."
   (dart-info (format "Reporting to flycheck: %s" response))
-  (-when-let (errors (dart--get response 'result 'errors))
-    (-let [fly-errors (--map (dart--to-flycheck-err it buffer) errors)]
-      (dart-info (format "Parsed errors: %s" fly-errors))
-      (funcall callback 'finished fly-errors))))
+  (-let [fly-errors (--map (dart--to-flycheck-err it buffer)
+                           (dart--get response 'result 'errors))]
+    (dart-info (format "Parsed errors: %s" fly-errors))
+    (funcall callback 'finished fly-errors)))
 
 (defun dart--to-flycheck-err (err buffer)
   "Create a flycheck error from a dart ERR in BUFFER."



reply via email to

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