Skip to content

Commit 360e9f4

Browse files
nomadbloxinabox
andauthored
Apply suggestions from code review
Co-authored-by: Frames White <oxinabox@ucc.asn.au>
1 parent 9f09fc1 commit 360e9f4

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

gen/compile_proto.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ function process_module(cur_module::AbstractString; base_module::AbstractString=
3838
infiles = split.(string.(glob("*.proto", src_dir/input_path)), '/') .|> (a -> a[3:end]) .|> a -> joinpath(a...)
3939

4040
mkpath(module_out_dir)
41-
strip_currdir(str::String) = string(strip(str, ['.','/']))
42-
# relative_paths = string.(infiles) .|> strip_currdir
4341
relative_paths = string.(infiles)
4442
search_directories = joinpath(@__DIR__, "proto")
4543
output_directory = string(module_out_dir)

src/Deserialization/deserialization.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,8 @@ function map_summaries(fun::Function, logdir; purge=true, tags=nothing, steps=no
250250
steps !== nothing && step steps && continue
251251

252252
iter = SummaryDeserializingIterator(event.what.value, smart)
253-
# fullnames = String[]
254253
for (name, val) in iter
255254
tags !== nothing && name tags && continue
256-
# fullname = "$(name)_$(step)"
257-
# fullname in fullnames ? continue : push!(fullnames, fullname)
258-
259255
fun(name, step, val)
260256
end
261257
end

src/Deserialization/images.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function lookahead_deserialize_image_summary(old_tag, old_val, evs::Summary,
1414

1515
state = state_old + 1
1616
iter_result = iterate(evs, state)
17-
while !(iter_result isa Nothing)
17+
while iter_result !== nothing
1818
((tag, summary), state) = iter_result
1919
# iteration body
2020
typ = summary_type(summary)

0 commit comments

Comments
 (0)