We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn
file-name
1 parent 43865e8 commit 6506351Copy full SHA for 6506351
src/json_diff/core.clj
@@ -8,17 +8,17 @@
8
9
(defn open-parse
10
"open JSON file and parses it"
11
- [fn]
12
- (with-open [f (io/reader fn)]
+ [file-name]
+ (with-open [f (io/reader file-name)]
13
(json/read f)))
14
15
(defn diff
16
"returns diff between JSON files"
17
- [fn1 fn2]
+ [file-name1 file-name2]
18
(let [c1 (chan)
19
c2 (chan)]
20
- (go (>! c1 (open-parse fn1)))
21
- (go (>! c2 (open-parse fn2)))
+ (go (>! c1 (open-parse file-name1)))
+ (go (>! c2 (open-parse file-name2)))
22
(ddiff/diff (<!! c1) (<!! c2))))
23
24
(defn -main
0 commit comments