Skip to content

Commit 6be29dd

Browse files
committed
lint fix
1 parent ba958ea commit 6be29dd

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/eca/features/tools/shell.clj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
(ns eca.features.tools.shell
2-
(:require [babashka.fs :as fs]
3-
[babashka.process :as p]
4-
[clojure.string :as string]
5-
[eca.config :as config]
6-
[eca.features.tools.util :as tools.util]
7-
[eca.logger :as logger]
8-
[eca.shared :as shared]))
2+
(:require
3+
[babashka.fs :as fs]
4+
[babashka.process :as p]
5+
[clojure.string :as string]
6+
[eca.config :as config]
7+
[eca.features.tools.util :as tools.util]
8+
[eca.logger :as logger]
9+
[eca.shared :as shared]))
910

1011
(set! *warn-on-reflection* true)
1112

1213
(def ^:private logger-tag "[TOOLS-SHELL]")
1314

14-
(defn ^:private shell-command [arguments {:keys [db config]}]
15+
(defn ^:private shell-command [arguments {:keys [db]}]
1516
(let [command-args (get arguments "command")
16-
command (first (string/split command-args #"\s+"))
1717
user-work-dir (get arguments "working_directory")]
1818
(or (tools.util/invalid-arguments arguments [["working_directory" #(or (nil? %)
1919
(fs/exists? %)) "working directory $working_directory does not exist"]])

test/eca/handlers_test.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
(defrecord MockMessenger [calls-atom]
1313
messenger/IMessenger
14-
(config-updated [this params]
14+
(config-updated [_this params]
1515
(swap! calls-atom conj [:config-updated params]))
16-
(tool-server-updated [this params]
16+
(tool-server-updated [_this params]
1717
(swap! calls-atom conj [:tool-server-updated params]))
18-
(chat-content-received [this data] nil)
19-
(showMessage [this msg] nil)
20-
(editor-diagnostics [this uri] nil))
18+
(chat-content-received [_this _data] nil)
19+
(showMessage [_this _msg] nil)
20+
(editor-diagnostics [_this _uri] nil))
2121

2222
(deftest initialize-test
2323
(testing "initializationOptions config is merged properly with default init config"

0 commit comments

Comments
 (0)