Fix writing to a file only when the option is set.
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-02 22:29:22 +03:00
parent 871fc3ed55
commit df8f580f93
+2 -1
View File
@@ -147,7 +147,8 @@
(defn show-and-save-output (defn show-and-save-output
"Print and save the output to a file if needed" "Print and save the output to a file if needed"
[output options] [output options]
(save-output output options) (when (contains? options :output-file)
(save-output output options))
(println output)) (println output))
(defn cracking-actions (defn cracking-actions