Skip to content

Commit 0a5c960

Browse files
committed
update
1 parent 2688157 commit 0a5c960

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

words_extractor_jl/src/words_extractor_jl.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
module words_extractor_jl
22

33
using Distributed
4-
using Pipe
54
using YAML
65

7-
folder = "words"
6+
const folder = "words"
87

9-
function worker(yaml_path)
10-
path = get_filepath(yaml_path)
8+
function worker(yaml_path)
9+
path = get_filepath(yaml_path)
1110
words = get_words(yaml_path)
12-
write(path, join(words, "\n"))
11+
write(path, join(words, "\n"))
1312
println(string("Saved...", path))
1413
end
1514

@@ -29,7 +28,7 @@ function walk(path, file_ext)
2928
for (root, _, files) in walkdir(path, topdown = true)
3029
for file in files
3130
if endswith(file, file_ext)
32-
filepath = joinpath(root, file)
31+
filepath = joinpath(root, file)
3332
push!(res, filepath)
3433
end
3534
end

0 commit comments

Comments
 (0)