Skip to content

Commit 085b2df

Browse files
committed
Cleaning up some lint errors
1 parent 5dddd18 commit 085b2df

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/clj/kamera/core.clj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[clj-chrome-devtools.automation.fixture :as cdp-fixture]
1010
[clj-chrome-devtools.automation.launcher :as cdp-launcher]
1111
[clj-chrome-devtools.commands.page :as page]
12-
[clj-chrome-devtools.commands.dom :as dom]
1312
[clj-chrome-devtools.commands.emulation :as emulation]
1413
[clj-chrome-devtools.commands.browser :as browser]
1514
[clojure.string :as string]
@@ -170,10 +169,6 @@
170169
{:errors [(format "Could not parse ImageMagick output\n stdout: %s \n stderr: %s"
171170
stdout stderr)]}))))))
172171

173-
(defn- body-dimensions [{:keys [connection] :as session}]
174-
(when-let [body (cdp-automation/sel1 session "body")]
175-
(:model (dom/get-box-model connection body))))
176-
177172
(defn- browser-dimensions [{:keys [connection]}]
178173
(select-keys (:bounds (browser/get-window-for-target connection {}))
179174
[:width :height]))
@@ -194,7 +189,7 @@
194189
:mobile false}))
195190
(emulation/set-page-scale-factor connection {:page-scale-factor 1.0})))
196191

197-
(defn- take-screenshot [session {:keys [reference-file screenshot-directory resize-to-contents]} opts]
192+
(defn- take-screenshot [session {:keys [reference-file screenshot-directory resize-to-contents]} _opts]
198193
(when (and resize-to-contents (some resize-to-contents [:height? :width?]))
199194
(resize-window-to-contents! session resize-to-contents))
200195

src/clj/kamera/devcards.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(let [connect-url (get-in config [:options :closure-defines 'figwheel.repl/connect-url])]
3939
(assert connect-url "Could not detect a url to connect to")
4040
connect-url)
41-
(catch Exception e
41+
(catch Exception _e
4242
(fig-api/stop build-id)
4343
nil)))))
4444

0 commit comments

Comments
 (0)