Skip to content

Commit 5317edc

Browse files
committed
minor readability change
As suggested by @sogaiu @zevv forget to push this change in a recent PR (janet-lang#1175 (comment)). Incidentally, the affected lines were already reformatted in the current PR, via fmt/format-file.
1 parent a238391 commit 5317edc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/boot/boot.janet

+5-6
Original file line numberDiff line numberDiff line change
@@ -4189,12 +4189,11 @@
41894189

41904190
(defn do-one-file
41914191
[fname]
4192-
(if-not (has-value? boot/args "image-only")
4193-
(do
4194-
(print "\n/* " fname " */")
4195-
(print "#line 0 \"" fname "\"\n")
4196-
(def source (slurp fname))
4197-
(print (string/replace-all "\r" "" source)))))
4192+
(unless (has-value? boot/args "image-only")
4193+
(print "\n/* " fname " */")
4194+
(print "#line 0 \"" fname "\"\n")
4195+
(def source (slurp fname))
4196+
(print (string/replace-all "\r" "" source))))
41984197

41994198
(do-one-file feature-header)
42004199

0 commit comments

Comments
 (0)