Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The compojure template required the compojure.core library by referring all functions from that namespace. While this does give convienience of just using the function name without a namespace, it does mean many functions not used are included. (ns status-monitor.handler (:require [compojure.core :refer :all])) Using this form also raises a warning from the Joker linting tool that I have running in Spacemacs. To be more specific when using the compojure.core library, I changed the require to refer the specific functions / macros used, defroutes and GET (:require [compojure.core :refer [defroutes GET]] Stating exactly which functions you are using from each library helps with maintaining the code as well as minimising unknown conflicts.
- Loading branch information