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.
1 parent 5a1f518 commit 05cc6d8Copy full SHA for 05cc6d8
src/json_diff/core.clj
@@ -7,13 +7,13 @@
7
8
9
(defn diff
10
- "prints diff between JSON files"
+ "returns diff between JSON files"
11
[fn1 fn2]
12
(with-open [file1 (io/reader fn1)
13
file2 (io/reader fn2)]
14
(let [json1 (json/read file1)
15
json2 (json/read file2)]
16
- (ddiff/pretty-print (ddiff/diff json1 json2)))))
+ (ddiff/diff json1 json2))))
17
18
(defn -main
19
"Main function"
@@ -22,4 +22,4 @@
22
(println "Not enough parameters!")
23
(let [fn1 (first args)
24
fn2 (second args)]
25
- (diff fn1 fn2))))
+ (ddiff/pretty-print (diff fn1 fn2)))))
0 commit comments