Skip to content

Commit fc4c911

Browse files
authored
Make running tokei thread-safe (#42)
1 parent a6163d4 commit fc4c911

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/count_loc.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ function count_loc(dir)
33
# This makes it easy to process later, since we have uniform filepaths
44
json = cd(dir) do
55
try
6-
tokei() do exe
7-
JSON3.read(read(`$exe --output json .`))
8-
end
6+
JSON3.read(read(`$(tokei()) --output json .`))
97
catch e
108
@error e
119
missing

0 commit comments

Comments
 (0)