Skip to content

Commit

Permalink
Merge pull request abingham#484 from phst/assoc-default
Browse files Browse the repository at this point in the history
Fix level assignment for unknown kinds.
  • Loading branch information
Austin Bingham authored Oct 16, 2018
2 parents fe35b7f + 13f7108 commit ef87d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flycheck-ycmd.el
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
:filename .location.filepath
:message (concat .text (when (eq .fixit_available t) " (FixIt available)"))
:checker checker
:level (assoc-default .kind flycheck-ycmd--level-map 'string-equal 'error)))))
:level (or (cdr (assoc-string .kind flycheck-ycmd--level-map)) 'error)))))

(defun flycheck-ycmd--start (checker callback)
"Start ycmd flycheck CHECKER using CALLBACK to communicate with flycheck."
Expand Down

0 comments on commit ef87d02

Please sign in to comment.