branch: elpa/dart-mode
commit f3a7c7b71fb12d02fa02700bc10426cb10010d01
Author: Natalie Weizenbaum <[email protected]>
Commit: Natalie Weizenbaum <[email protected]>
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."