Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

requires with empty :refer aren't discarded #47

Open
guillaume opened this issue Jan 21, 2021 · 0 comments
Open

requires with empty :refer aren't discarded #47

guillaume opened this issue Jan 21, 2021 · 0 comments

Comments

@guillaume
Copy link

I noticed a require/:refer that results in no :refer (empty vector) don't get discarded even with :aggressive true. for instance this require with an unused match symbol

(ns company.core
  (:require
   [clojure.set :as set]
   [clojure.core.match :refer [match]]))

results in this

(ns company.core
  (:require
   [clojure.set :as set]
   [clojure.core.match :refer []]))

expectation would be

(ns company.core
  (:require
   [clojure.set :as set]))
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants