Skip to content

Commit 24bddc8

Browse files
committed
shorter printing
1 parent b1127d9 commit 24bddc8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/SQLiteGraph.jl

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ end
1515

1616
function print_props(io::IO, o::Config)
1717
for (i,(k,v)) in enumerate(pairs(o))
18-
print(io, k, '=', repr(v))
19-
i == length(o) || print(io, ", ")
18+
if i < 5
19+
print(io, k, '=', repr(v))
20+
i == length(o) || print(io, ", ")
21+
end
2022
end
23+
length(o) > 5 && print(io, "")
2124
end
2225

2326

0 commit comments

Comments
 (0)