Skip to content

Commit 818c95c

Browse files
committed
_ depwarns
1 parent 59a306c commit 818c95c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/eval.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
getthing(mod::Module, name::AbstractString, default = nothing) =
1717
name == "" ?
1818
default :
19-
@as _ name split(_, ".", keep=false) map(Symbol, _) getthing(mod, _, default)
19+
@as x name split(x, ".", keep=false) map(Symbol, x) getthing(mod, x, default)
2020

2121
getthing(mod::Module, ::Void, default) = default
2222

src/module.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ isdir′(f) = try isdir(f) catch e false end
1616
isfile′(f) = try isfile(f) catch e false end
1717

1818
files(dir) =
19-
@_ dir readdir′(_) map!(f->joinpath(dir, f), _ ,_) filter!(isfile′, _)
19+
@as x dir readdir′(x) map!(f->joinpath(dir, f), x ,x) filter!(isfile′, x)
2020

2121
dirs(dir) =
22-
@_ dir readdir′(_) filter!(f->!startswith(f, "."), _) map!(f->joinpath(dir, f), _, _) filter!(isdir′, _)
22+
@as x dir readdir′(x) filter!(f->!startswith(f, "."), x) map!(f->joinpath(dir, f), x, x) filter!(isdir′, x)
2323

2424
jl_files(dir::AbstractString) = @>> dir files filter!(f->endswith(f, ".jl"))
2525

0 commit comments

Comments
 (0)